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

Side by Side Diff: mozilla/security/nss/lib/libpkix/pkix/params/pkix_procparams.c

Issue 12197027: Merge NSS_3_14_2_RTM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 7 years, 10 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
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_procparams.c 5 * pkix_procparams.c
6 * 6 *
7 * ProcessingParams Object Functions 7 * ProcessingParams Object Functions
8 * 8 *
9 */ 9 */
10 10
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 params->revChecker = NULL; 549 params->revChecker = NULL;
550 params->certStores = NULL; 550 params->certStores = NULL;
551 params->resourceLimits = NULL; 551 params->resourceLimits = NULL;
552 552
553 params->isCrlRevocationCheckingEnabled = PKIX_TRUE; 553 params->isCrlRevocationCheckingEnabled = PKIX_TRUE;
554 554
555 params->isCrlRevocationCheckingEnabledWithNISTPolicy = PKIX_TRUE; 555 params->isCrlRevocationCheckingEnabledWithNISTPolicy = PKIX_TRUE;
556 556
557 params->useAIAForCertFetching = PKIX_FALSE; 557 params->useAIAForCertFetching = PKIX_FALSE;
558 params->qualifyTargetCert = PKIX_TRUE; 558 params->qualifyTargetCert = PKIX_TRUE;
559 params->useOnlyTrustAnchors = PKIX_TRUE;
559 560
560 *pParams = params; 561 *pParams = params;
561 params = NULL; 562 params = NULL;
562 563
563 cleanup: 564 cleanup:
564 565
565 PKIX_DECREF(params); 566 PKIX_DECREF(params);
566 567
567 PKIX_RETURN(PROCESSINGPARAMS); 568 PKIX_RETURN(PROCESSINGPARAMS);
568 569
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 PKIX_NULLCHECK_TWO(params, pAnchors); 681 PKIX_NULLCHECK_TWO(params, pAnchors);
681 682
682 PKIX_INCREF(params->trustAnchors); 683 PKIX_INCREF(params->trustAnchors);
683 684
684 *pAnchors = params->trustAnchors; 685 *pAnchors = params->trustAnchors;
685 686
686 cleanup: 687 cleanup:
687 PKIX_RETURN(PROCESSINGPARAMS); 688 PKIX_RETURN(PROCESSINGPARAMS);
688 } 689 }
689 690
691 /**
692 * FUNCTION: PKIX_ProcessingParams_SetUseOnlyTrustAnchors
693 * (see comments in pkix_params.h)
694 */
695 PKIX_Error *
696 PKIX_ProcessingParams_GetUseOnlyTrustAnchors(
697 PKIX_ProcessingParams *params,
698 PKIX_Boolean *pUseOnlyTrustAnchors,
699 void *plContext)
700 {
701 PKIX_ENTER(PROCESSINGPARAMS,
702 "PKIX_ProcessingParams_SetUseTrustAnchorsOnly");
703 PKIX_NULLCHECK_TWO(params, pUseOnlyTrustAnchors);
704
705 *pUseOnlyTrustAnchors = params->useOnlyTrustAnchors;
706
707 PKIX_RETURN(PROCESSINGPARAMS);
708 }
709
710 /**
711 * FUNCTION: PKIX_ProcessingParams_SetUseOnlyTrustAnchors
712 * (see comments in pkix_params.h)
713 */
714 PKIX_Error *
715 PKIX_ProcessingParams_SetUseOnlyTrustAnchors(
716 PKIX_ProcessingParams *params,
717 PKIX_Boolean useOnlyTrustAnchors,
718 void *plContext)
719 {
720 PKIX_ENTER(PROCESSINGPARAMS,
721 "PKIX_ProcessingParams_SetUseTrustAnchorsOnly");
722 PKIX_NULLCHECK_ONE(params);
723
724 params->useOnlyTrustAnchors = useOnlyTrustAnchors;
725
726 PKIX_RETURN(PROCESSINGPARAMS);
727 }
728
690 /* 729 /*
691 * FUNCTION: PKIX_ProcessingParams_GetDate (see comments in pkix_params.h) 730 * FUNCTION: PKIX_ProcessingParams_GetDate (see comments in pkix_params.h)
692 */ 731 */
693 PKIX_Error * 732 PKIX_Error *
694 PKIX_ProcessingParams_GetDate( 733 PKIX_ProcessingParams_GetDate(
695 PKIX_ProcessingParams *params, 734 PKIX_ProcessingParams *params,
696 PKIX_PL_Date **pDate, 735 PKIX_PL_Date **pDate,
697 void *plContext) 736 void *plContext)
698 { 737 {
699 PKIX_ENTER(PROCESSINGPARAMS, "PKIX_ProcessingParams_GetDate"); 738 PKIX_ENTER(PROCESSINGPARAMS, "PKIX_ProcessingParams_GetDate");
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
1369 PKIX_ENTER(PROCESSINGPARAMS, "PKIX_ProcessingParams_GetHintCerts"); 1408 PKIX_ENTER(PROCESSINGPARAMS, "PKIX_ProcessingParams_GetHintCerts");
1370 1409
1371 PKIX_NULLCHECK_TWO(params, pHintCerts); 1410 PKIX_NULLCHECK_TWO(params, pHintCerts);
1372 1411
1373 PKIX_INCREF(params->hintCerts); 1412 PKIX_INCREF(params->hintCerts);
1374 *pHintCerts = params->hintCerts; 1413 *pHintCerts = params->hintCerts;
1375 1414
1376 cleanup: 1415 cleanup:
1377 PKIX_RETURN(PROCESSINGPARAMS); 1416 PKIX_RETURN(PROCESSINGPARAMS);
1378 } 1417 }
OLDNEW
« no previous file with comments | « mozilla/security/nss/lib/libpkix/pkix/params/pkix_procparams.h ('k') | mozilla/security/nss/lib/libpkix/pkix/top/pkix_build.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698