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 * pkix_pl_nsscontext.c | 5 * pkix_pl_nsscontext.c |
6 * | 6 * |
7 * NSSContext Function Definitions | 7 * NSSContext Function Definitions |
8 * | 8 * |
9 */ | 9 */ |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 * (see comments in pkix_samples_modules.h) | 24 * (see comments in pkix_samples_modules.h) |
25 */ | 25 */ |
26 PKIX_Error * | 26 PKIX_Error * |
27 PKIX_PL_NssContext_Create( | 27 PKIX_PL_NssContext_Create( |
28 PKIX_UInt32 certificateUsage, | 28 PKIX_UInt32 certificateUsage, |
29 PKIX_Boolean useNssArena, | 29 PKIX_Boolean useNssArena, |
30 void *wincx, | 30 void *wincx, |
31 void **pNssContext) | 31 void **pNssContext) |
32 { | 32 { |
33 PKIX_PL_NssContext *context = NULL; | 33 PKIX_PL_NssContext *context = NULL; |
34 PRArenaPool *arena = NULL; | 34 PLArenaPool *arena = NULL; |
35 void *plContext = NULL; | 35 void *plContext = NULL; |
36 | 36 |
37 PKIX_ENTER(CONTEXT, "PKIX_PL_NssContext_Create"); | 37 PKIX_ENTER(CONTEXT, "PKIX_PL_NssContext_Create"); |
38 PKIX_NULLCHECK_ONE(pNssContext); | 38 PKIX_NULLCHECK_ONE(pNssContext); |
39 | 39 |
40 PKIX_CHECK(PKIX_PL_Malloc | 40 PKIX_CHECK(PKIX_PL_Malloc |
41 (sizeof(PKIX_PL_NssContext), (void **)&context, NULL), | 41 (sizeof(PKIX_PL_NssContext), (void **)&context, NULL), |
42 PKIX_MALLOCFAILED); | 42 PKIX_MALLOCFAILED); |
43 | 43 |
44 if (useNssArena == PKIX_TRUE) { | 44 if (useNssArena == PKIX_TRUE) { |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 { | 310 { |
311 void *plContext = NULL; | 311 void *plContext = NULL; |
312 | 312 |
313 PKIX_ENTER(CONTEXT, "PKIX_PL_NssContext_SetBadDerCrlReloadDelay"); | 313 PKIX_ENTER(CONTEXT, "PKIX_PL_NssContext_SetBadDerCrlReloadDelay"); |
314 PKIX_NULLCHECK_ONE(nssContext); | 314 PKIX_NULLCHECK_ONE(nssContext); |
315 | 315 |
316 nssContext->badDerCrlReloadDelay = delay; | 316 nssContext->badDerCrlReloadDelay = delay; |
317 | 317 |
318 PKIX_RETURN(CONTEXT); | 318 PKIX_RETURN(CONTEXT); |
319 } | 319 } |
OLD | NEW |