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

Side by Side Diff: patches/nss-static.patch

Issue 1504923011: Update NSS to 3.21 RTM and NSPR to 4.11 RTM (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/nss
Patch Set: Created 5 years 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
1 diff --git a/nss/lib/certhigh/certvfy.c b/nss/lib/certhigh/certvfy.c 1 diff --git a/lib/certhigh/certvfy.c b/lib/certhigh/certvfy.c
2 index 3141163..c9d26f0 100644 2 index d5dcbe8..855a62d 100644
3 --- a/nss/lib/certhigh/certvfy.c 3 --- a/lib/certhigh/certvfy.c
4 +++ b/nss/lib/certhigh/certvfy.c 4 +++ b/lib/certhigh/certvfy.c
5 @@ -13,9 +13,11 @@ 5 @@ -12,9 +12,11 @@
6 #include "certdb.h" 6 #include "certdb.h"
7 #include "certi.h" 7 #include "certi.h"
8 #include "cryptohi.h" 8 #include "cryptohi.h"
9 +#ifndef NSS_DISABLE_LIBPKIX 9 +#ifndef NSS_DISABLE_LIBPKIX
10 #include "pkix.h" 10 #include "pkix.h"
11 /*#include "pkix_sample_modules.h" */ 11 /*#include "pkix_sample_modules.h" */
12 #include "pkix_pl_cert.h" 12 #include "pkix_pl_cert.h"
13 +#endif /* NSS_DISABLE_LIBPKIX */ 13 +#endif /* NSS_DISABLE_LIBPKIX */
14 14
15 15
16 #include "nsspki.h" 16 #include "nsspki.h"
17 @@ -24,6 +26,47 @@ 17 @@ -24,6 +26,47 @@
18 #include "pki3hack.h"
19 #include "base.h" 18 #include "base.h"
19 #include "keyhi.h"
20 20
21 +#ifdef NSS_DISABLE_LIBPKIX 21 +#ifdef NSS_DISABLE_LIBPKIX
22 +SECStatus 22 +SECStatus
23 +cert_VerifyCertChainPkix( 23 +cert_VerifyCertChainPkix(
24 + CERTCertificate *cert, 24 + CERTCertificate *cert,
25 + PRBool checkSig, 25 + PRBool checkSig,
26 + SECCertUsage requiredUsage, 26 + SECCertUsage requiredUsage,
27 + PRTime time, 27 + PRTime time,
28 + void *wincx, 28 + void *wincx,
29 + CERTVerifyLog *log, 29 + CERTVerifyLog *log,
(...skipping 25 matching lines...) Expand all
55 + void *wincx) 55 + void *wincx)
56 +{ 56 +{
57 + PORT_SetError(PR_NOT_IMPLEMENTED_ERROR); 57 + PORT_SetError(PR_NOT_IMPLEMENTED_ERROR);
58 + return SECFailure; 58 + return SECFailure;
59 +} 59 +}
60 +#endif /* NSS_DISABLE_LIBPKIX */ 60 +#endif /* NSS_DISABLE_LIBPKIX */
61 + 61 +
62 /* 62 /*
63 * Check the validity times of a certificate 63 * Check the validity times of a certificate
64 */ 64 */
65 diff --git a/nss/lib/ckfw/nssck.api b/nss/lib/ckfw/nssck.api 65 diff --git a/lib/ckfw/nssck.api b/lib/ckfw/nssck.api
66 index 55b4351..8364258 100644 66 index 55b4351..8364258 100644
67 --- a/nss/lib/ckfw/nssck.api 67 --- a/lib/ckfw/nssck.api
68 +++ b/nss/lib/ckfw/nssck.api 68 +++ b/lib/ckfw/nssck.api
69 @@ -1752,7 +1752,7 @@ C_WaitForSlotEvent 69 @@ -1752,7 +1752,7 @@ C_WaitForSlotEvent
70 } 70 }
71 #endif /* DECLARE_STRICT_CRYPTOKI_NAMES */ 71 #endif /* DECLARE_STRICT_CRYPTOKI_NAMES */
72 72
73 -static CK_RV CK_ENTRY 73 -static CK_RV CK_ENTRY
74 +CK_RV CK_ENTRY 74 +CK_RV CK_ENTRY
75 __ADJOIN(MODULE_NAME,C_GetFunctionList) 75 __ADJOIN(MODULE_NAME,C_GetFunctionList)
76 ( 76 (
77 CK_FUNCTION_LIST_PTR_PTR ppFunctionList 77 CK_FUNCTION_LIST_PTR_PTR ppFunctionList
78 @@ -1830,7 +1830,7 @@ __ADJOIN(MODULE_NAME,C_CancelFunction), 78 @@ -1830,7 +1830,7 @@ __ADJOIN(MODULE_NAME,C_CancelFunction),
(...skipping 14 matching lines...) Expand all
93 CK_RV CK_ENTRY 93 CK_RV CK_ENTRY
94 C_GetFunctionList 94 C_GetFunctionList
95 @@ -1849,6 +1850,7 @@ C_GetFunctionList 95 @@ -1849,6 +1850,7 @@ C_GetFunctionList
96 { 96 {
97 return __ADJOIN(MODULE_NAME,C_GetFunctionList)(ppFunctionList); 97 return __ADJOIN(MODULE_NAME,C_GetFunctionList)(ppFunctionList);
98 } 98 }
99 +#endif 99 +#endif
100 100
101 #undef __ADJOIN 101 #undef __ADJOIN
102 102
103 diff --git a/nss/lib/freebl/rsa.c b/nss/lib/freebl/rsa.c 103 diff --git a/lib/freebl/rsa.c b/lib/freebl/rsa.c
104 index 498cc96..780c3c7 100644 104 index f885acc..f1824ef 100644
105 --- a/nss/lib/freebl/rsa.c 105 --- a/lib/freebl/rsa.c
106 +++ b/nss/lib/freebl/rsa.c 106 +++ b/lib/freebl/rsa.c
107 @@ -1535,6 +1535,13 @@ void BL_Cleanup(void) 107 @@ -1535,6 +1535,13 @@ void BL_Cleanup(void)
108 RSA_Cleanup(); 108 RSA_Cleanup();
109 } 109 }
110 110
111 +#ifdef NSS_STATIC 111 +#ifdef NSS_STATIC
112 +void 112 +void
113 +BL_Unload(void) 113 +BL_Unload(void)
114 +{ 114 +{
115 +} 115 +}
116 +#endif 116 +#endif
117 + 117 +
118 PRBool bl_parentForkedAfterC_Initialize; 118 PRBool bl_parentForkedAfterC_Initialize;
119 119
120 /* 120 /*
121 diff --git a/nss/lib/freebl/shvfy.c b/nss/lib/freebl/shvfy.c 121 diff --git a/lib/freebl/shvfy.c b/lib/freebl/shvfy.c
122 index ad64a26..33714b8 100644 122 index ad64a26..33714b8 100644
123 --- a/nss/lib/freebl/shvfy.c 123 --- a/lib/freebl/shvfy.c
124 +++ b/nss/lib/freebl/shvfy.c 124 +++ b/lib/freebl/shvfy.c
125 @@ -273,9 +273,21 @@ readItem(PRFileDesc *fd, SECItem *item) 125 @@ -273,9 +273,21 @@ readItem(PRFileDesc *fd, SECItem *item)
126 return SECSuccess; 126 return SECSuccess;
127 } 127 }
128 128
129 +/* 129 +/*
130 + * Define PSEUDO_FIPS if you can't do FIPS software integrity test (e.g., 130 + * Define PSEUDO_FIPS if you can't do FIPS software integrity test (e.g.,
131 + * if you're using NSS as static libraries), but want to conform to the 131 + * if you're using NSS as static libraries), but want to conform to the
132 + * rest of the FIPS requirements. 132 + * rest of the FIPS requirements.
133 + */ 133 + */
134 +#ifdef NSS_STATIC 134 +#ifdef NSS_STATIC
(...skipping 26 matching lines...) Expand all
161 PRFileDesc *checkFD = NULL; 161 PRFileDesc *checkFD = NULL;
162 PRFileDesc *shFD = NULL; 162 PRFileDesc *shFD = NULL;
163 @@ -492,6 +508,7 @@ loser: 163 @@ -492,6 +508,7 @@ loser:
164 } 164 }
165 165
166 return result; 166 return result;
167 +#endif /* PSEUDO_FIPS */ 167 +#endif /* PSEUDO_FIPS */
168 } 168 }
169 169
170 PRBool 170 PRBool
171 diff --git a/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpcertstore.c b/nss/li b/libpkix/pkix_pl_nss/module/pkix_pl_httpcertstore.c 171 diff --git a/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpcertstore.c b/lib/libpki x/pkix_pl_nss/module/pkix_pl_httpcertstore.c
172 index 30aefb8..ac814cd 100755 172 index 30aefb8..ac814cd 100755
173 --- a/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpcertstore.c 173 --- a/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpcertstore.c
174 +++ b/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpcertstore.c 174 +++ b/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpcertstore.c
175 @@ -201,7 +201,10 @@ certCallback(void *arg, SECItem **secitemCerts, int numcert s) 175 @@ -201,7 +201,10 @@ certCallback(void *arg, SECItem **secitemCerts, int numcert s)
176 176
177 typedef SECStatus (*pkix_DecodeCertsFunc)(char *certbuf, int certlen, 177 typedef SECStatus (*pkix_DecodeCertsFunc)(char *certbuf, int certlen,
178 CERTImportCertificateFunc f, void *ar g); 178 CERTImportCertificateFunc f, void *ar g);
179 - 179 -
180 +#ifdef NSS_STATIC 180 +#ifdef NSS_STATIC
181 +extern SECStatus CERT_DecodeCertPackage(char* certbuf, int certlen, 181 +extern SECStatus CERT_DecodeCertPackage(char* certbuf, int certlen,
182 + CERTImportCertificateFunc f, void* arg) ; 182 + CERTImportCertificateFunc f, void* arg) ;
183 +#endif 183 +#endif
184 184
(...skipping 13 matching lines...) Expand all
198 if (pkix_decodeFunc.smimeLib == NULL) { 198 if (pkix_decodeFunc.smimeLib == NULL) {
199 @@ -235,7 +243,7 @@ static PRStatus PR_CALLBACK pkix_getDecodeFunction(void) 199 @@ -235,7 +243,7 @@ static PRStatus PR_CALLBACK pkix_getDecodeFunction(void)
200 return PR_FAILURE; 200 return PR_FAILURE;
201 } 201 }
202 return PR_SUCCESS; 202 return PR_SUCCESS;
203 - 203 -
204 +#endif 204 +#endif
205 } 205 }
206 206
207 /* 207 /*
208 diff --git a/nss/lib/nss/nssinit.c b/nss/lib/nss/nssinit.c 208 diff --git a/lib/nss/nssinit.c b/lib/nss/nssinit.c
209 index 6218a7e..208e71d 100644 209 index b22f915..d490037 100644
210 --- a/nss/lib/nss/nssinit.c 210 --- a/lib/nss/nssinit.c
211 +++ b/nss/lib/nss/nssinit.c 211 +++ b/lib/nss/nssinit.c
212 @@ -20,9 +20,11 @@ 212 @@ -20,9 +20,11 @@
213 #include "secerr.h" 213 #include "secerr.h"
214 #include "nssbase.h" 214 #include "nssbase.h"
215 #include "nssutil.h" 215 #include "nssutil.h"
216 +#ifndef NSS_DISABLE_LIBPKIX 216 +#ifndef NSS_DISABLE_LIBPKIX
217 #include "pkixt.h" 217 #include "pkixt.h"
218 #include "pkix.h" 218 #include "pkix.h"
219 #include "pkix_tools.h" 219 #include "pkix_tools.h"
220 +#endif /* NSS_DISABLE_LIBPKIX */ 220 +#endif /* NSS_DISABLE_LIBPKIX */
221 221
222 #include "pki3hack.h" 222 #include "pki3hack.h"
223 #include "certi.h" 223 #include "certi.h"
224 @@ -530,8 +532,10 @@ nss_Init(const char *configdir, const char *certPrefix, con st char *keyPrefix, 224 @@ -526,8 +528,10 @@ nss_Init(const char *configdir, const char *certPrefix, con st char *keyPrefix,
225 PRBool dontFinalizeModules) 225 PRBool dontFinalizeModules)
226 { 226 {
227 SECStatus rv = SECFailure; 227 SECStatus rv = SECFailure;
228 +#ifndef NSS_DISABLE_LIBPKIX 228 +#ifndef NSS_DISABLE_LIBPKIX
229 PKIX_UInt32 actualMinorVersion = 0; 229 PKIX_UInt32 actualMinorVersion = 0;
230 PKIX_Error *pkixError = NULL; 230 PKIX_Error *pkixError = NULL;
231 +#endif 231 +#endif
232 PRBool isReallyInitted; 232 PRBool isReallyInitted;
233 char *configStrings = NULL; 233 char *configStrings = NULL;
234 char *configName = NULL; 234 char *configName = NULL;
235 @@ -685,6 +689,7 @@ nss_Init(const char *configdir, const char *certPrefix, cons t char *keyPrefix, 235 @@ -684,6 +688,7 @@ nss_Init(const char *configdir, const char *certPrefix, cons t char *keyPrefix,
236 pk11sdr_Init(); 236 pk11sdr_Init();
237 cert_CreateSubjectKeyIDHashTable(); 237 cert_CreateSubjectKeyIDHashTable();
238 238
239 +#ifndef NSS_DISABLE_LIBPKIX 239 +#ifndef NSS_DISABLE_LIBPKIX
240 pkixError = PKIX_Initialize 240 pkixError = PKIX_Initialize
241 (PKIX_FALSE, PKIX_MAJOR_VERSION, PKIX_MINOR_VERSION, 241 (PKIX_FALSE, PKIX_MAJOR_VERSION, PKIX_MINOR_VERSION,
242 PKIX_MINOR_VERSION, &actualMinorVersion, &plContext); 242 PKIX_MINOR_VERSION, &actualMinorVersion, &plContext);
243 @@ -697,6 +702,7 @@ nss_Init(const char *configdir, const char *certPrefix, cons t char *keyPrefix, 243 @@ -696,6 +701,7 @@ nss_Init(const char *configdir, const char *certPrefix, cons t char *keyPrefix,
244 CERT_SetUsePKIXForValidation(PR_TRUE); 244 CERT_SetUsePKIXForValidation(PR_TRUE);
245 } 245 }
246 } 246 }
247 +#endif /* NSS_DISABLE_LIBPKIX */ 247 +#endif /* NSS_DISABLE_LIBPKIX */
248 248
249 249
250 } 250 }
251 @@ -1081,7 +1087,9 @@ nss_Shutdown(void) 251 @@ -1080,7 +1086,9 @@ nss_Shutdown(void)
252 cert_DestroyLocks(); 252 cert_DestroyLocks();
253 ShutdownCRLCache(); 253 ShutdownCRLCache();
254 OCSP_ShutdownGlobal(); 254 OCSP_ShutdownGlobal();
255 +#ifndef NSS_DISABLE_LIBPKIX 255 +#ifndef NSS_DISABLE_LIBPKIX
256 PKIX_Shutdown(plContext); 256 PKIX_Shutdown(plContext);
257 +#endif 257 +#endif
258 SECOID_Shutdown(); 258 SECOID_Shutdown();
259 status = STAN_Shutdown(); 259 status = STAN_Shutdown();
260 cert_DestroySubjectKeyIDHashTable(); 260 cert_DestroySubjectKeyIDHashTable();
261 diff --git a/nss/lib/pk11wrap/pk11load.c b/nss/lib/pk11wrap/pk11load.c 261 diff --git a/lib/pk11wrap/pk11load.c b/lib/pk11wrap/pk11load.c
262 index 6700180..1811a1a 100644 262 index e3ba122..bf7cc68 100644
263 --- a/nss/lib/pk11wrap/pk11load.c 263 --- a/lib/pk11wrap/pk11load.c
264 +++ b/nss/lib/pk11wrap/pk11load.c 264 +++ b/lib/pk11wrap/pk11load.c
265 @@ -341,6 +341,12 @@ SECMOD_SetRootCerts(PK11SlotInfo *slot, SECMODModule *mod) { 265 @@ -341,6 +341,12 @@ SECMOD_SetRootCerts(PK11SlotInfo *slot, SECMODModule *mod) {
266 } 266 }
267 } 267 }
268 268
269 +#ifdef NSS_STATIC 269 +#ifdef NSS_STATIC
270 +extern CK_RV NSC_GetFunctionList(CK_FUNCTION_LIST_PTR *pFunctionList); 270 +extern CK_RV NSC_GetFunctionList(CK_FUNCTION_LIST_PTR *pFunctionList);
271 +extern CK_RV FC_GetFunctionList(CK_FUNCTION_LIST_PTR *pFunctionList); 271 +extern CK_RV FC_GetFunctionList(CK_FUNCTION_LIST_PTR *pFunctionList);
272 +extern char **NSC_ModuleDBFunc(unsigned long function,char *parameters, void *a rgs); 272 +extern char **NSC_ModuleDBFunc(unsigned long function,char *parameters, void *a rgs);
273 +extern CK_RV builtinsC_GetFunctionList(CK_FUNCTION_LIST_PTR *pFunctionList); 273 +extern CK_RV builtinsC_GetFunctionList(CK_FUNCTION_LIST_PTR *pFunctionList);
274 +#else 274 +#else
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 if (entry == NULL) { 350 if (entry == NULL) {
351 if (mod->isModuleDB) { 351 if (mod->isModuleDB) {
352 @@ -585,6 +617,7 @@ SECMOD_UnloadModule(SECMODModule *mod) { 352 @@ -585,6 +617,7 @@ SECMOD_UnloadModule(SECMODModule *mod) {
353 * if not, we should change this to SECFailure and move it above the 353 * if not, we should change this to SECFailure and move it above the
354 * mod->loaded = PR_FALSE; */ 354 * mod->loaded = PR_FALSE; */
355 if (mod->internal && (mod->dllName == NULL)) { 355 if (mod->internal && (mod->dllName == NULL)) {
356 +#ifndef NSS_STATIC 356 +#ifndef NSS_STATIC
357 if (0 == PR_ATOMIC_DECREMENT(&softokenLoadCount)) { 357 if (0 == PR_ATOMIC_DECREMENT(&softokenLoadCount)) {
358 if (softokenLib) { 358 if (softokenLib) {
359 disableUnload = PR_GetEnv("NSS_DISABLE_UNLOAD"); 359 disableUnload = PR_GetEnv("NSS_DISABLE_UNLOAD");
360 @@ -596,12 +629,18 @@ SECMOD_UnloadModule(SECMODModule *mod) { 360 @@ -600,12 +633,18 @@ SECMOD_UnloadModule(SECMODModule *mod) {
361 } 361 }
362 loadSoftokenOnce = pristineCallOnce; 362 loadSoftokenOnce = pristineCallOnce;
363 } 363 }
364 +#endif 364 +#endif
365 return SECSuccess; 365 return SECSuccess;
366 } 366 }
367 367
368 library = (PRLibrary *)mod->library; 368 library = (PRLibrary *)mod->library;
369 /* paranoia */ 369 /* paranoia */
370 if (library == NULL) { 370 if (library == NULL) {
371 +#if defined(NSS_STATIC) && !defined(NSS_DISABLE_ROOT_CERTS) 371 +#if defined(NSS_STATIC) && !defined(NSS_DISABLE_ROOT_CERTS)
372 + if (strstr(mod->dllName, "nssckbi") != NULL) { 372 + if (strstr(mod->dllName, "nssckbi") != NULL) {
373 + return SECSuccess; 373 + return SECSuccess;
374 + } 374 + }
375 +#endif 375 +#endif
376 return SECFailure; 376 return SECFailure;
377 } 377 }
378 378
379 diff --git a/nss/lib/softoken/lgglue.c b/nss/lib/softoken/lgglue.c 379 diff --git a/lib/softoken/lgglue.c b/lib/softoken/lgglue.c
380 index c7b82bd..64e6415 100644 380 index c7b82bd..64e6415 100644
381 --- a/nss/lib/softoken/lgglue.c 381 --- a/lib/softoken/lgglue.c
382 +++ b/nss/lib/softoken/lgglue.c 382 +++ b/lib/softoken/lgglue.c
383 @@ -23,6 +23,7 @@ static LGDeleteSecmodFunc legacy_glue_deleteSecmod = NULL; 383 @@ -23,6 +23,7 @@ static LGDeleteSecmodFunc legacy_glue_deleteSecmod = NULL;
384 static LGAddSecmodFunc legacy_glue_addSecmod = NULL; 384 static LGAddSecmodFunc legacy_glue_addSecmod = NULL;
385 static LGShutdownFunc legacy_glue_shutdown = NULL; 385 static LGShutdownFunc legacy_glue_shutdown = NULL;
386 386
387 +#ifndef NSS_STATIC 387 +#ifndef NSS_STATIC
388 /* 388 /*
389 * The following 3 functions duplicate the work done by bl_LoadLibrary. 389 * The following 3 functions duplicate the work done by bl_LoadLibrary.
390 * We should make bl_LoadLibrary a global and replace the call to 390 * We should make bl_LoadLibrary a global and replace the call to
391 @@ -160,6 +161,7 @@ done: 391 @@ -160,6 +161,7 @@ done:
392 392
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 } 439 }
440 +#ifndef NSS_STATIC 440 +#ifndef NSS_STATIC
441 disableUnload = PR_GetEnv("NSS_DISABLE_UNLOAD"); 441 disableUnload = PR_GetEnv("NSS_DISABLE_UNLOAD");
442 if (!disableUnload) { 442 if (!disableUnload) {
443 PR_UnloadLibrary(legacy_glue_lib); 443 PR_UnloadLibrary(legacy_glue_lib);
444 } 444 }
445 +#endif 445 +#endif
446 legacy_glue_lib = NULL; 446 legacy_glue_lib = NULL;
447 legacy_glue_open = NULL; 447 legacy_glue_open = NULL;
448 legacy_glue_readSecmod = NULL; 448 legacy_glue_readSecmod = NULL;
449 diff --git a/nss/lib/softoken/lgglue.h b/nss/lib/softoken/lgglue.h 449 diff --git a/lib/softoken/lgglue.h b/lib/softoken/lgglue.h
450 index b87f756..c8c562f 100644 450 index b87f756..c8c562f 100644
451 --- a/nss/lib/softoken/lgglue.h 451 --- a/lib/softoken/lgglue.h
452 +++ b/nss/lib/softoken/lgglue.h 452 +++ b/lib/softoken/lgglue.h
453 @@ -38,6 +38,25 @@ typedef SECStatus (*LGShutdownFunc)(PRBool forked); 453 @@ -38,6 +38,25 @@ typedef SECStatus (*LGShutdownFunc)(PRBool forked);
454 typedef void (*LGSetForkStateFunc)(PRBool); 454 typedef void (*LGSetForkStateFunc)(PRBool);
455 typedef void (*LGSetCryptFunc)(LGEncryptFunc, LGDecryptFunc); 455 typedef void (*LGSetCryptFunc)(LGEncryptFunc, LGDecryptFunc);
456 456
457 +extern CK_RV legacy_Open(const char *dir, const char *certPrefix, 457 +extern CK_RV legacy_Open(const char *dir, const char *certPrefix,
458 + const char *keyPrefix, 458 + const char *keyPrefix,
459 + int certVersion, int keyVersion, int flags, 459 + int certVersion, int keyVersion, int flags,
460 + SDB **certDB, SDB **keyDB); 460 + SDB **certDB, SDB **keyDB);
461 +extern char ** legacy_ReadSecmodDB(const char *appName, 461 +extern char ** legacy_ReadSecmodDB(const char *appName,
462 + const char *filename, 462 + const char *filename,
463 + const char *dbname, char *params, PRBool rw); 463 + const char *dbname, char *params, PRBool rw);
464 +extern SECStatus legacy_ReleaseSecmodDBData(const char *appName, 464 +extern SECStatus legacy_ReleaseSecmodDBData(const char *appName,
465 + const char *filename, 465 + const char *filename,
466 + const char *dbname, char **params, PRBool rw); 466 + const char *dbname, char **params, PRBool rw);
467 +extern SECStatus legacy_DeleteSecmodDB(const char *appName, 467 +extern SECStatus legacy_DeleteSecmodDB(const char *appName,
468 + const char *filename, 468 + const char *filename,
469 + const char *dbname, char *params, PRBool rw); 469 + const char *dbname, char *params, PRBool rw);
470 +extern SECStatus legacy_AddSecmodDB(const char *appName, 470 +extern SECStatus legacy_AddSecmodDB(const char *appName,
471 + const char *filename, 471 + const char *filename,
472 + const char *dbname, char *params, PRBool rw); 472 + const char *dbname, char *params, PRBool rw);
473 +extern SECStatus legacy_Shutdown(PRBool forked); 473 +extern SECStatus legacy_Shutdown(PRBool forked);
474 +extern void legacy_SetCryptFunctions(LGEncryptFunc, LGDecryptFunc); 474 +extern void legacy_SetCryptFunctions(LGEncryptFunc, LGDecryptFunc);
475 + 475 +
476 /* 476 /*
477 * Softoken Glue Functions 477 * Softoken Glue Functions
478 */ 478 */
479 diff --git a/nss/lib/util/secport.h b/nss/lib/util/secport.h 479 diff --git a/lib/util/secport.h b/lib/util/secport.h
480 index 5b09b9c..f01eb74 100644 480 index 7d2f5e0..95c73c8 100644
481 --- a/nss/lib/util/secport.h 481 --- a/lib/util/secport.h
482 +++ b/nss/lib/util/secport.h 482 +++ b/lib/util/secport.h
483 @@ -210,6 +210,7 @@ extern int NSS_PutEnv(const char * envVarName, const char * envValue); 483 @@ -223,6 +223,7 @@ extern int NSS_PutEnv(const char * envVarName, const char * envValue);
484 484
485 extern int NSS_SecureMemcmp(const void *a, const void *b, size_t n); 485 extern int NSS_SecureMemcmp(const void *a, const void *b, size_t n);
486 486
487 +#ifndef NSS_STATIC 487 +#ifndef NSS_STATIC
488 /* 488 /*
489 * Load a shared library called "newShLibName" in the same directory as 489 * Load a shared library called "newShLibName" in the same directory as
490 * a shared library that is already loaded, called existingShLibName. 490 * a shared library that is already loaded, called existingShLibName.
491 @@ -244,6 +245,7 @@ PRLibrary * 491 @@ -257,6 +258,7 @@ PRLibrary *
492 PORT_LoadLibraryFromOrigin(const char* existingShLibName, 492 PORT_LoadLibraryFromOrigin(const char* existingShLibName,
493 PRFuncPtr staticShLibFunc, 493 PRFuncPtr staticShLibFunc,
494 const char *newShLibName); 494 const char *newShLibName);
495 +#endif /* NSS_STATIC */ 495 +#endif /* NSS_STATIC */
496 496
497 SEC_END_PROTOS 497 SEC_END_PROTOS
498 498
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698