security/manager/ssl/src/nsPK11TokenDB.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
michael@0 2 *
michael@0 3 * This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 #ifndef __NS_PK11TOKENDB_H__
michael@0 8 #define __NS_PK11TOKENDB_H__
michael@0 9
michael@0 10 #include "nsCOMPtr.h"
michael@0 11 #include "nsString.h"
michael@0 12 #include "nsISupports.h"
michael@0 13 #include "nsIPK11TokenDB.h"
michael@0 14 #include "nsIPK11Token.h"
michael@0 15 #include "nsNSSHelper.h"
michael@0 16 #include "pk11func.h"
michael@0 17 #include "nsNSSShutDown.h"
michael@0 18
michael@0 19 class nsPK11Token : public nsIPK11Token,
michael@0 20 public nsNSSShutDownObject
michael@0 21 {
michael@0 22 public:
michael@0 23 NS_DECL_ISUPPORTS
michael@0 24 NS_DECL_NSIPK11TOKEN
michael@0 25
michael@0 26 nsPK11Token(PK11SlotInfo *slot);
michael@0 27 virtual ~nsPK11Token();
michael@0 28 /* additional members */
michael@0 29
michael@0 30 private:
michael@0 31 friend class nsPK11TokenDB;
michael@0 32 void refreshTokenInfo();
michael@0 33
michael@0 34 nsString mTokenName;
michael@0 35 nsString mTokenLabel, mTokenManID, mTokenHWVersion, mTokenFWVersion;
michael@0 36 nsString mTokenSerialNum;
michael@0 37 PK11SlotInfo *mSlot;
michael@0 38 int mSeries;
michael@0 39 nsCOMPtr<nsIInterfaceRequestor> mUIContext;
michael@0 40 virtual void virtualDestroyNSSReference();
michael@0 41 void destructorSafeDestroyNSSReference();
michael@0 42 };
michael@0 43
michael@0 44 class nsPK11TokenDB : public nsIPK11TokenDB
michael@0 45 {
michael@0 46 public:
michael@0 47 NS_DECL_ISUPPORTS
michael@0 48 NS_DECL_NSIPK11TOKENDB
michael@0 49
michael@0 50 nsPK11TokenDB();
michael@0 51 virtual ~nsPK11TokenDB();
michael@0 52 /* additional members */
michael@0 53 };
michael@0 54
michael@0 55 #define NS_PK11TOKENDB_CID \
michael@0 56 { 0xb084a2ce, 0x1dd1, 0x11b2, \
michael@0 57 { 0xbf, 0x10, 0x83, 0x24, 0xf8, 0xe0, 0x65, 0xcc }}
michael@0 58
michael@0 59 #endif

mercurial