security/nss/lib/ckfw/builtins/builtins.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 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #include "nssckmdt.h"
michael@0 6 #include "nssckfw.h"
michael@0 7
michael@0 8 /*
michael@0 9 * I'm including this for access to the arena functions.
michael@0 10 * Looks like we should publish that API.
michael@0 11 */
michael@0 12 #ifndef BASE_H
michael@0 13 #include "base.h"
michael@0 14 #endif /* BASE_H */
michael@0 15
michael@0 16 /*
michael@0 17 * This is where the Netscape extensions live, at least for now.
michael@0 18 */
michael@0 19 #ifndef CKT_H
michael@0 20 #include "ckt.h"
michael@0 21 #endif /* CKT_H */
michael@0 22
michael@0 23 struct builtinsInternalObjectStr {
michael@0 24 CK_ULONG n;
michael@0 25 const CK_ATTRIBUTE_TYPE *types;
michael@0 26 const NSSItem *items;
michael@0 27 NSSCKMDObject mdObject;
michael@0 28 };
michael@0 29 typedef struct builtinsInternalObjectStr builtinsInternalObject;
michael@0 30
michael@0 31 extern builtinsInternalObject nss_builtins_data[];
michael@0 32 extern const PRUint32 nss_builtins_nObjects;
michael@0 33
michael@0 34 extern const CK_VERSION nss_builtins_CryptokiVersion;
michael@0 35 extern const CK_VERSION nss_builtins_LibraryVersion;
michael@0 36 extern const CK_VERSION nss_builtins_HardwareVersion;
michael@0 37 extern const CK_VERSION nss_builtins_FirmwareVersion;
michael@0 38
michael@0 39 extern const NSSUTF8 nss_builtins_ManufacturerID[];
michael@0 40 extern const NSSUTF8 nss_builtins_LibraryDescription[];
michael@0 41 extern const NSSUTF8 nss_builtins_SlotDescription[];
michael@0 42 extern const NSSUTF8 nss_builtins_TokenLabel[];
michael@0 43 extern const NSSUTF8 nss_builtins_TokenModel[];
michael@0 44 extern const NSSUTF8 nss_builtins_TokenSerialNumber[];
michael@0 45
michael@0 46 extern const NSSCKMDInstance nss_builtins_mdInstance;
michael@0 47 extern const NSSCKMDSlot nss_builtins_mdSlot;
michael@0 48 extern const NSSCKMDToken nss_builtins_mdToken;
michael@0 49
michael@0 50 NSS_EXTERN NSSCKMDSession *
michael@0 51 nss_builtins_CreateSession
michael@0 52 (
michael@0 53 NSSCKFWSession *fwSession,
michael@0 54 CK_RV *pError
michael@0 55 );
michael@0 56
michael@0 57 NSS_EXTERN NSSCKMDFindObjects *
michael@0 58 nss_builtins_FindObjectsInit
michael@0 59 (
michael@0 60 NSSCKFWSession *fwSession,
michael@0 61 CK_ATTRIBUTE_PTR pTemplate,
michael@0 62 CK_ULONG ulAttributeCount,
michael@0 63 CK_RV *pError
michael@0 64 );
michael@0 65
michael@0 66 NSS_EXTERN NSSCKMDObject *
michael@0 67 nss_builtins_CreateMDObject
michael@0 68 (
michael@0 69 NSSArena *arena,
michael@0 70 builtinsInternalObject *io,
michael@0 71 CK_RV *pError
michael@0 72 );

mercurial