Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: mozilla/security/nss/lib/ckfw/builtins/bslot.c

Issue 14249009: Change the NSS and NSPR source tree to the new directory structure to be (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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/. */
4
5 #ifdef DEBUG
6 static const char CVS_ID[] = "@(#) $RCSfile: bslot.c,v $ $Revision: 1.5 $ $Date: 2012/04/25 14:49:29 $";
7 #endif /* DEBUG */
8
9 #include "builtins.h"
10
11 /*
12 * builtins/slot.c
13 *
14 * This file implements the NSSCKMDSlot object for the
15 * "builtin objects" cryptoki module.
16 */
17
18 static NSSUTF8 *
19 builtins_mdSlot_GetSlotDescription
20 (
21 NSSCKMDSlot *mdSlot,
22 NSSCKFWSlot *fwSlot,
23 NSSCKMDInstance *mdInstance,
24 NSSCKFWInstance *fwInstance,
25 CK_RV *pError
26 )
27 {
28 return (NSSUTF8 *)nss_builtins_SlotDescription;
29 }
30
31 static NSSUTF8 *
32 builtins_mdSlot_GetManufacturerID
33 (
34 NSSCKMDSlot *mdSlot,
35 NSSCKFWSlot *fwSlot,
36 NSSCKMDInstance *mdInstance,
37 NSSCKFWInstance *fwInstance,
38 CK_RV *pError
39 )
40 {
41 return (NSSUTF8 *)nss_builtins_ManufacturerID;
42 }
43
44 static CK_VERSION
45 builtins_mdSlot_GetHardwareVersion
46 (
47 NSSCKMDSlot *mdSlot,
48 NSSCKFWSlot *fwSlot,
49 NSSCKMDInstance *mdInstance,
50 NSSCKFWInstance *fwInstance
51 )
52 {
53 return nss_builtins_HardwareVersion;
54 }
55
56 static CK_VERSION
57 builtins_mdSlot_GetFirmwareVersion
58 (
59 NSSCKMDSlot *mdSlot,
60 NSSCKFWSlot *fwSlot,
61 NSSCKMDInstance *mdInstance,
62 NSSCKFWInstance *fwInstance
63 )
64 {
65 return nss_builtins_FirmwareVersion;
66 }
67
68 static NSSCKMDToken *
69 builtins_mdSlot_GetToken
70 (
71 NSSCKMDSlot *mdSlot,
72 NSSCKFWSlot *fwSlot,
73 NSSCKMDInstance *mdInstance,
74 NSSCKFWInstance *fwInstance,
75 CK_RV *pError
76 )
77 {
78 return (NSSCKMDToken *)&nss_builtins_mdToken;
79 }
80
81 const NSSCKMDSlot
82 nss_builtins_mdSlot = {
83 (void *)NULL, /* etc */
84 NULL, /* Initialize */
85 NULL, /* Destroy */
86 builtins_mdSlot_GetSlotDescription,
87 builtins_mdSlot_GetManufacturerID,
88 NULL, /* GetTokenPresent -- defaults to true */
89 NULL, /* GetRemovableDevice -- defaults to false */
90 NULL, /* GetHardwareSlot -- defaults to false */
91 builtins_mdSlot_GetHardwareVersion,
92 builtins_mdSlot_GetFirmwareVersion,
93 builtins_mdSlot_GetToken,
94 (void *)NULL /* null terminator */
95 };
OLDNEW
« no previous file with comments | « mozilla/security/nss/lib/ckfw/builtins/bsession.c ('k') | mozilla/security/nss/lib/ckfw/builtins/btoken.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698