tor-browser

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

PKCS11ModuleDB.h (1188B)


      1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
      2 *
      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 #ifndef PKCS11ModuleDB_h
      7 #define PKCS11ModuleDB_h
      8 
      9 #include "nsIPKCS11ModuleDB.h"
     10 #include "nsTLiteralString.h"
     11 
     12 namespace mozilla {
     13 namespace psm {
     14 
     15 #define NS_PKCS11MODULEDB_CID \
     16  {0xff9fbcd7, 0x9517, 0x4334, {0xb9, 0x7a, 0xce, 0xed, 0x78, 0x90, 0x99, 0x74}}
     17 
     18 class PKCS11ModuleDB : public nsIPKCS11ModuleDB {
     19 public:
     20  PKCS11ModuleDB() = default;
     21 
     22  NS_DECL_ISUPPORTS
     23  NS_DECL_NSIPKCS11MODULEDB
     24 
     25 protected:
     26  virtual ~PKCS11ModuleDB() = default;
     27 };
     28 
     29 const nsLiteralCString kIPCClientCertsModuleName("IPC Client Cert Module");
     30 const nsLiteralCString kNSSInternalModuleName("NSS Internal PKCS #11 Module");
     31 const nsLiteralCString kOSClientCertsModuleName("OS Client Cert Module");
     32 const nsLiteralCString kRootModuleName("Builtin Roots Module");
     33 
     34 void CollectThirdPartyPKCS11ModuleTelemetry(bool aIsInitialization = false);
     35 
     36 }  // namespace psm
     37 }  // namespace mozilla
     38 
     39 #endif  // PKCS11ModuleDB_h