tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

WebAuthnEnumStrings.h (2542B)


      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/. */
      6 
      7 #ifndef mozilla_dom_WebAuthnEnumStrings_h
      8 #define mozilla_dom_WebAuthnEnumStrings_h
      9 
     10 // WARNING: This version number must match the WebAuthn level where the strings
     11 // below are defined.
     12 #define MOZ_WEBAUTHN_ENUM_STRINGS_VERSION 3
     13 
     14 // https://www.w3.org/TR/webauthn-2/#enum-attestation-convey
     15 #define MOZ_WEBAUTHN_ATTESTATION_CONVEYANCE_PREFERENCE_NONE "none"
     16 #define MOZ_WEBAUTHN_ATTESTATION_CONVEYANCE_PREFERENCE_INDIRECT "indirect"
     17 #define MOZ_WEBAUTHN_ATTESTATION_CONVEYANCE_PREFERENCE_DIRECT "direct"
     18 #define MOZ_WEBAUTHN_ATTESTATION_CONVEYANCE_PREFERENCE_ENTERPRISE "enterprise"
     19 // WARNING: Change version number when adding new values!
     20 
     21 // https://www.w3.org/TR/webauthn-2/#enum-attachment
     22 #define MOZ_WEBAUTHN_AUTHENTICATOR_ATTACHMENT_PLATFORM "platform"
     23 #define MOZ_WEBAUTHN_AUTHENTICATOR_ATTACHMENT_CROSS_PLATFORM "cross-platform"
     24 // WARNING: Change version number when adding new values!
     25 
     26 // https://www.w3.org/TR/webauthn-2/#enum-credentialType
     27 #define MOZ_WEBAUTHN_PUBLIC_KEY_CREDENTIAL_TYPE_PUBLIC_KEY "public-key"
     28 // WARNING: Change version number when adding new values!
     29 
     30 // https://www.w3.org/TR/webauthn-2/#enum-residentKeyRequirement
     31 #define MOZ_WEBAUTHN_RESIDENT_KEY_REQUIREMENT_REQUIRED "required"
     32 #define MOZ_WEBAUTHN_RESIDENT_KEY_REQUIREMENT_PREFERRED "preferred"
     33 #define MOZ_WEBAUTHN_RESIDENT_KEY_REQUIREMENT_DISCOURAGED "discouraged"
     34 // WARNING: Change version number when adding new values!
     35 
     36 // https://www.w3.org/TR/webauthn-2/#enum-userVerificationRequirement
     37 #define MOZ_WEBAUTHN_USER_VERIFICATION_REQUIREMENT_REQUIRED "required"
     38 #define MOZ_WEBAUTHN_USER_VERIFICATION_REQUIREMENT_PREFERRED "preferred"
     39 #define MOZ_WEBAUTHN_USER_VERIFICATION_REQUIREMENT_DISCOURAGED "discouraged"
     40 // WARNING: Change version number when adding new values!
     41 
     42 // https://www.w3.org/TR/webauthn-2/#enum-transport
     43 #define MOZ_WEBAUTHN_AUTHENTICATOR_TRANSPORT_USB "usb"
     44 #define MOZ_WEBAUTHN_AUTHENTICATOR_TRANSPORT_NFC "nfc"
     45 #define MOZ_WEBAUTHN_AUTHENTICATOR_TRANSPORT_BLE "ble"
     46 #define MOZ_WEBAUTHN_AUTHENTICATOR_TRANSPORT_INTERNAL "internal"
     47 #define MOZ_WEBAUTHN_AUTHENTICATOR_TRANSPORT_HYBRID "hybrid"
     48 // WARNING: Change version number when adding new values!
     49 
     50 #endif  // mozilla_dom_WebAuthnEnumStrings_h