Line data Source code
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 PKCS11_h
7 : #define PKCS11_h
8 :
9 : #include "nsIPKCS11.h"
10 :
11 : #include "nsNSSShutDown.h"
12 : #include "nsString.h"
13 :
14 : namespace mozilla { namespace psm {
15 :
16 : #define NS_PKCS11_CID \
17 : {0x74b7a390, 0x3b41, 0x11d4, { 0x8a, 0x80, 0x00, 0x60, 0x08, 0xc8, 0x44, 0xc3} }
18 :
19 : class PKCS11 : public nsIPKCS11
20 : , public nsNSSShutDownObject
21 : {
22 : public:
23 : PKCS11();
24 :
25 : NS_DECL_ISUPPORTS
26 : NS_DECL_NSIPKCS11
27 :
28 : protected:
29 : virtual ~PKCS11();
30 :
31 : private:
32 0 : virtual void virtualDestroyNSSReference() override {}
33 : };
34 :
35 : void GetModuleNameForTelemetry(/*in*/ const SECMODModule* module,
36 : /*out*/nsString& result);
37 :
38 : } } // namespace mozilla::psm
39 :
40 : #endif // PKCS11_h
|