Bug 1863873 - Block ability to perform audio decoding outside of Utility on release...
[gecko.git] / dom / webauthn / WebAuthnUtil.h
blob4c5841b347519f55b7dca6bd940223d4963d808f
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_dom_WebAuthnUtil_h
8 #define mozilla_dom_WebAuthnUtil_h
11 * Utility functions used by both WebAuthnManager and U2FTokenManager.
14 #include "mozilla/dom/WebAuthenticationBinding.h"
15 #include "ipc/IPCMessageUtils.h"
17 namespace mozilla::dom {
19 bool EvaluateAppID(nsPIDOMWindowInner* aParent, const nsString& aOrigin,
20 /* in/out */ nsString& aAppId);
22 nsresult HashCString(const nsACString& aIn, /* out */ nsTArray<uint8_t>& aOut);
24 } // namespace mozilla::dom
26 #endif // mozilla_dom_WebAuthnUtil_h