OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 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 | 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/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 | 4 |
5 #include "builtins.h" | 5 #include "builtins.h" |
6 | 6 |
7 /* | 7 /* |
8 * builtins/instance.c | 8 * builtins/instance.c |
9 * | 9 * |
10 * This file implements the NSSCKMDInstance object for the | 10 * This file implements the NSSCKMDInstance object for the |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 return (NSSUTF8 *)nss_builtins_LibraryDescription; | 58 return (NSSUTF8 *)nss_builtins_LibraryDescription; |
59 } | 59 } |
60 | 60 |
61 static CK_VERSION | 61 static CK_VERSION |
62 builtins_mdInstance_GetLibraryVersion | 62 builtins_mdInstance_GetLibraryVersion |
63 ( | 63 ( |
64 NSSCKMDInstance *mdInstance, | 64 NSSCKMDInstance *mdInstance, |
65 NSSCKFWInstance *fwInstance | 65 NSSCKFWInstance *fwInstance |
66 ) | 66 ) |
67 { | 67 { |
68 extern const char __nss_builtins_rcsid[]; | 68 #define NSS_VERSION_VARIABLE __nss_builtins_version |
69 extern const char __nss_builtins_sccsid[]; | 69 #include "verref.h" |
70 volatile char c; /* force a reference that won't get optimized away */ | |
71 | |
72 c = __nss_builtins_rcsid[0] + __nss_builtins_sccsid[0]; | |
73 return nss_builtins_LibraryVersion; | 70 return nss_builtins_LibraryVersion; |
74 } | 71 } |
75 | 72 |
76 static CK_RV | 73 static CK_RV |
77 builtins_mdInstance_GetSlots | 74 builtins_mdInstance_GetSlots |
78 ( | 75 ( |
79 NSSCKMDInstance *mdInstance, | 76 NSSCKMDInstance *mdInstance, |
80 NSSCKFWInstance *fwInstance, | 77 NSSCKFWInstance *fwInstance, |
81 NSSCKMDSlot *slots[] | 78 NSSCKMDSlot *slots[] |
82 ) | 79 ) |
(...skipping 10 matching lines...) Expand all Loading... |
93 builtins_mdInstance_GetNSlots, | 90 builtins_mdInstance_GetNSlots, |
94 builtins_mdInstance_GetCryptokiVersion, | 91 builtins_mdInstance_GetCryptokiVersion, |
95 builtins_mdInstance_GetManufacturerID, | 92 builtins_mdInstance_GetManufacturerID, |
96 builtins_mdInstance_GetLibraryDescription, | 93 builtins_mdInstance_GetLibraryDescription, |
97 builtins_mdInstance_GetLibraryVersion, | 94 builtins_mdInstance_GetLibraryVersion, |
98 NULL, /* ModuleHandlesSessionObjects -- defaults to false */ | 95 NULL, /* ModuleHandlesSessionObjects -- defaults to false */ |
99 builtins_mdInstance_GetSlots, | 96 builtins_mdInstance_GetSlots, |
100 NULL, /* WaitForSlotEvent */ | 97 NULL, /* WaitForSlotEvent */ |
101 (void *)NULL /* null terminator */ | 98 (void *)NULL /* null terminator */ |
102 }; | 99 }; |
OLD | NEW |