1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
static const char CVS_ID[] = "@(#) $RCSfile: mslot.c,v $ $Revision: 1.2 $ $Date: 2012/04/25 14:49:40 $";
14
* This file implements the NSSCKMDSlot object for the
15
* "nssmkey" cryptoki module.
19
ckmk_mdSlot_GetSlotDescription
23
NSSCKMDInstance *mdInstance,
24
NSSCKFWInstance *fwInstance,
28
return (NSSUTF8 *)nss_ckmk_SlotDescription;
32
ckmk_mdSlot_GetManufacturerID
36
NSSCKMDInstance *mdInstance,
37
NSSCKFWInstance *fwInstance,
41
return (NSSUTF8 *)nss_ckmk_ManufacturerID;
45
ckmk_mdSlot_GetHardwareVersion
49
NSSCKMDInstance *mdInstance,
50
NSSCKFWInstance *fwInstance
53
return nss_ckmk_HardwareVersion;
57
ckmk_mdSlot_GetFirmwareVersion
61
NSSCKMDInstance *mdInstance,
62
NSSCKFWInstance *fwInstance
65
return nss_ckmk_FirmwareVersion;
73
NSSCKMDInstance *mdInstance,
74
NSSCKFWInstance *fwInstance,
78
return (NSSCKMDToken *)&nss_ckmk_mdToken;
81
NSS_IMPLEMENT_DATA const NSSCKMDSlot
83
(void *)NULL, /* etc */
84
NULL, /* Initialize */
86
ckmk_mdSlot_GetSlotDescription,
87
ckmk_mdSlot_GetManufacturerID,
88
NULL, /* GetTokenPresent -- defaults to true */
89
NULL, /* GetRemovableDevice -- defaults to false */
90
NULL, /* GetHardwareSlot -- defaults to false */
91
ckmk_mdSlot_GetHardwareVersion,
92
ckmk_mdSlot_GetFirmwareVersion,
94
(void *)NULL /* null terminator */