OLD | NEW |
1 /* | 1 /* |
2 * NSS utility functions | 2 * NSS utility functions |
3 * | 3 * |
4 * ***** BEGIN LICENSE BLOCK ***** | 4 * ***** BEGIN LICENSE BLOCK ***** |
5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
6 * | 6 * |
7 * The contents of this file are subject to the Mozilla Public License Version | 7 * The contents of this file are subject to the Mozilla Public License Version |
8 * 1.1 (the "License"); you may not use this file except in compliance with | 8 * 1.1 (the "License"); you may not use this file except in compliance with |
9 * the License. You may obtain a copy of the License at | 9 * the License. You may obtain a copy of the License at |
10 * http://www.mozilla.org/MPL/ | 10 * http://www.mozilla.org/MPL/ |
(...skipping 18 matching lines...) Expand all Loading... |
29 * in which case the provisions of the GPL or the LGPL are applicable instead | 29 * in which case the provisions of the GPL or the LGPL are applicable instead |
30 * of those above. If you wish to allow use of your version of this file only | 30 * of those above. If you wish to allow use of your version of this file only |
31 * under the terms of either the GPL or the LGPL, and not to allow others to | 31 * under the terms of either the GPL or the LGPL, and not to allow others to |
32 * use your version of this file under the terms of the MPL, indicate your | 32 * use your version of this file under the terms of the MPL, indicate your |
33 * decision by deleting the provisions above and replace them with the notice | 33 * decision by deleting the provisions above and replace them with the notice |
34 * and other provisions required by the GPL or the LGPL. If you do not delete | 34 * and other provisions required by the GPL or the LGPL. If you do not delete |
35 * the provisions above, a recipient may use your version of this file under | 35 * the provisions above, a recipient may use your version of this file under |
36 * the terms of any one of the MPL, the GPL or the LGPL. | 36 * the terms of any one of the MPL, the GPL or the LGPL. |
37 * | 37 * |
38 * ***** END LICENSE BLOCK ***** */ | 38 * ***** END LICENSE BLOCK ***** */ |
39 /* $Id: nss.h,v 1.74 2009/11/20 20:15:05 christophe.ravel.bugs%sun.com Exp $ */ | 39 /* $Id: nss.h,v 1.76 2010/02/11 19:12:45 christophe.ravel.bugs%sun.com Exp $ */ |
40 | 40 |
41 #ifndef __nss_h_ | 41 #ifndef __nss_h_ |
42 #define __nss_h_ | 42 #define __nss_h_ |
43 | 43 |
44 /* The private macro _NSS_ECC_STRING is for NSS internal use only. */ | 44 /* The private macro _NSS_ECC_STRING is for NSS internal use only. */ |
45 #ifdef NSS_ENABLE_ECC | 45 #ifdef NSS_ENABLE_ECC |
46 #ifdef NSS_ECC_MORE_THAN_SUITE_B | 46 #ifdef NSS_ECC_MORE_THAN_SUITE_B |
47 #define _NSS_ECC_STRING " Extended ECC" | 47 #define _NSS_ECC_STRING " Extended ECC" |
48 #else | 48 #else |
49 #define _NSS_ECC_STRING " Basic ECC" | 49 #define _NSS_ECC_STRING " Basic ECC" |
50 #endif | 50 #endif |
51 #else | 51 #else |
52 #define _NSS_ECC_STRING "" | 52 #define _NSS_ECC_STRING "" |
53 #endif | 53 #endif |
54 | 54 |
55 /* The private macro _NSS_CUSTOMIZED is for NSS internal use only. */ | 55 /* The private macro _NSS_CUSTOMIZED is for NSS internal use only. */ |
56 #if defined(NSS_ALLOW_UNSUPPORTED_CRITICAL) | 56 #if defined(NSS_ALLOW_UNSUPPORTED_CRITICAL) |
57 #define _NSS_CUSTOMIZED " (Customized build)" | 57 #define _NSS_CUSTOMIZED " (Customized build)" |
58 #else | 58 #else |
59 #define _NSS_CUSTOMIZED | 59 #define _NSS_CUSTOMIZED |
60 #endif | 60 #endif |
61 | 61 |
62 /* | 62 /* |
63 * NSS's major version, minor version, patch level, build number, and whether | 63 * NSS's major version, minor version, patch level, build number, and whether |
64 * this is a beta release. | 64 * this is a beta release. |
65 * | 65 * |
66 * The format of the version string should be | 66 * The format of the version string should be |
67 * "<major version>.<minor version>[.<patch level>[.<build number>]][ <ECC>]
[ <Beta>]" | 67 * "<major version>.<minor version>[.<patch level>[.<build number>]][ <ECC>]
[ <Beta>]" |
68 */ | 68 */ |
69 #define NSS_VERSION "3.12.6.0" _NSS_ECC_STRING _NSS_CUSTOMIZED " Beta" | 69 #define NSS_VERSION "3.12.6.0" _NSS_ECC_STRING _NSS_CUSTOMIZED |
70 #define NSS_VMAJOR 3 | 70 #define NSS_VMAJOR 3 |
71 #define NSS_VMINOR 12 | 71 #define NSS_VMINOR 12 |
72 #define NSS_VPATCH 6 | 72 #define NSS_VPATCH 6 |
73 #define NSS_VBUILD 0 | 73 #define NSS_VBUILD 0 |
74 #define NSS_BETA PR_TRUE | 74 #define NSS_BETA PR_FALSE |
75 | 75 |
76 #ifndef RC_INVOKED | 76 #ifndef RC_INVOKED |
77 | 77 |
78 #include "seccomon.h" | 78 #include "seccomon.h" |
79 | 79 |
80 typedef struct NSSInitParametersStr NSSInitParameters; | 80 typedef struct NSSInitParametersStr NSSInitParameters; |
81 | 81 |
82 /* | 82 /* |
83 * parameters used to initialize softoken. Mostly strings used to | 83 * parameters used to initialize softoken. Mostly strings used to |
84 * internationalize softoken. Memory for the strings are owned by the caller, | 84 * internationalize softoken. Memory for the strings are owned by the caller, |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 #define NSS_INIT_PK11THREADSAFE 0x40 | 256 #define NSS_INIT_PK11THREADSAFE 0x40 |
257 #define NSS_INIT_PK11RELOAD 0x80 | 257 #define NSS_INIT_PK11RELOAD 0x80 |
258 #define NSS_INIT_NOPK11FINALIZE 0x100 | 258 #define NSS_INIT_NOPK11FINALIZE 0x100 |
259 #define NSS_INIT_RESERVED 0x200 | 259 #define NSS_INIT_RESERVED 0x200 |
260 | 260 |
261 #define NSS_INIT_COOPERATE NSS_INIT_PK11THREADSAFE | \ | 261 #define NSS_INIT_COOPERATE NSS_INIT_PK11THREADSAFE | \ |
262 NSS_INIT_PK11RELOAD | \ | 262 NSS_INIT_PK11RELOAD | \ |
263 NSS_INIT_NOPK11FINALIZE | \ | 263 NSS_INIT_NOPK11FINALIZE | \ |
264 NSS_INIT_RESERVED | 264 NSS_INIT_RESERVED |
265 | 265 |
266 #ifdef macintosh | |
267 #define SECMOD_DB "Security Modules" | |
268 #else | |
269 #define SECMOD_DB "secmod.db" | 266 #define SECMOD_DB "secmod.db" |
270 #endif | |
271 | 267 |
272 typedef struct NSSInitContextStr NSSInitContext; | 268 typedef struct NSSInitContextStr NSSInitContext; |
273 | 269 |
274 | 270 |
275 extern SECStatus NSS_Initialize(const char *configdir, | 271 extern SECStatus NSS_Initialize(const char *configdir, |
276 const char *certPrefix, const char *keyPrefix, | 272 const char *certPrefix, const char *keyPrefix, |
277 const char *secmodName, PRUint32 flags); | 273 const char *secmodName, PRUint32 flags); |
278 | 274 |
279 extern NSSInitContext *NSS_InitContext(const char *configdir, | 275 extern NSSInitContext *NSS_InitContext(const char *configdir, |
280 const char *certPrefix, const char *keyPrefix, | 276 const char *certPrefix, const char *keyPrefix, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 /* | 339 /* |
344 * Dump the contents of the certificate cache and the temporary cert store. | 340 * Dump the contents of the certificate cache and the temporary cert store. |
345 * Use to detect leaked references of certs at shutdown time. | 341 * Use to detect leaked references of certs at shutdown time. |
346 */ | 342 */ |
347 void nss_DumpCertificateCacheInfo(void); | 343 void nss_DumpCertificateCacheInfo(void); |
348 | 344 |
349 SEC_END_PROTOS | 345 SEC_END_PROTOS |
350 | 346 |
351 #endif /* RC_INVOKED */ | 347 #endif /* RC_INVOKED */ |
352 #endif /* __nss_h_ */ | 348 #endif /* __nss_h_ */ |
OLD | NEW |