567
567
PKIX_CHECK(PKIX_List_SetImmutable(params->trustAnchors, plContext),
568
568
PKIX_LISTSETIMMUTABLEFAILED);
570
PKIX_CHECK(PKIX_PL_Date_Create_UTCTime
571
(NULL, ¶ms->date, plContext),
572
PKIX_DATECREATEUTCTIMEFAILED);
570
574
params->hintCerts = NULL;
571
575
params->constraints = NULL;
573
576
params->initialPolicies = NULL;
574
577
params->initialPolicyMappingInhibit = PKIX_FALSE;
575
578
params->initialAnyPolicyInhibit = PKIX_FALSE;
576
579
params->initialExplicitPolicy = PKIX_FALSE;
577
580
params->qualifiersRejected = PKIX_FALSE;
578
581
params->certChainCheckers = NULL;
579
params->revCheckers = NULL;
582
params->revChecker = NULL;
580
583
params->certStores = NULL;
581
584
params->resourceLimits = NULL;
996
* FUNCTION: PKIX_ProcessingParams_GetRevocationCheckers
999
* FUNCTION: PKIX_ProcessingParams_GetRevocationChecker
997
1000
* (see comments in pkix_params.h)
1000
PKIX_ProcessingParams_GetRevocationCheckers(
1003
PKIX_ProcessingParams_GetRevocationChecker(
1001
1004
PKIX_ProcessingParams *params,
1002
PKIX_List **pCheckers, /* list of PKIX_RevocationChecker */
1005
PKIX_RevocationChecker **pChecker,
1003
1006
void *plContext)
1007
1010
(PROCESSINGPARAMS, "PKIX_ProcessingParams_GetRevocationCheckers");
1008
PKIX_NULLCHECK_TWO(params, pCheckers);
1010
if (params->revCheckers == NULL) {
1011
PKIX_CHECK(PKIX_List_Create
1012
(&(params->revCheckers), plContext),
1013
PKIX_LISTCREATEFAILED);
1016
PKIX_INCREF(params->revCheckers);
1018
*pCheckers = params->revCheckers;
1022
PKIX_RETURN(PROCESSINGPARAMS);
1026
* FUNCTION: PKIX_ProcessingParams_SetRevocationCheckers
1027
* (see comments in pkix_params.h)
1030
PKIX_ProcessingParams_SetRevocationCheckers(
1031
PKIX_ProcessingParams *params,
1032
PKIX_List *checkers, /* list of PKIX_RevocationChecker */
1036
PKIX_ENTER(PROCESSINGPARAMS,
1037
"PKIX_ProcessingParams_SetRevocationCheckers");
1038
PKIX_NULLCHECK_ONE(params);
1040
PKIX_DECREF(params->revCheckers);
1042
PKIX_INCREF(checkers);
1043
params->revCheckers = checkers;
1045
PKIX_CHECK(PKIX_PL_Object_InvalidateCache
1046
((PKIX_PL_Object *)params, plContext),
1047
PKIX_OBJECTINVALIDATECACHEFAILED);
1051
if (PKIX_ERROR_RECEIVED && params) {
1052
PKIX_DECREF(params->revCheckers);
1055
PKIX_RETURN(PROCESSINGPARAMS);
1059
* FUNCTION: PKIX_ProcessingParams_AddRevocationCheckers
1060
* (see comments in pkix_params.h)
1063
PKIX_ProcessingParams_AddRevocationChecker(
1011
PKIX_NULLCHECK_TWO(params, pChecker);
1013
PKIX_INCREF(params->revChecker);
1014
*pChecker = params->revChecker;
1018
PKIX_RETURN(PROCESSINGPARAMS);
1022
* FUNCTION: PKIX_ProcessingParams_SetRevocationChecker
1023
* (see comments in pkix_params.h)
1026
PKIX_ProcessingParams_SetRevocationChecker(
1064
1027
PKIX_ProcessingParams *params,
1065
1028
PKIX_RevocationChecker *checker,
1066
1029
void *plContext)
1068
PKIX_List *list = NULL;
1070
1032
PKIX_ENTER(PROCESSINGPARAMS,
1071
"PKIX_ProcessingParams_AddRevocationChecker");
1072
PKIX_NULLCHECK_TWO(params, checker);
1074
if (params->revCheckers == NULL) {
1076
PKIX_CHECK(PKIX_List_Create(&list, plContext),
1077
PKIX_LISTCREATEFAILED);
1079
params->revCheckers = list;
1082
PKIX_CHECK(PKIX_List_AppendItem
1083
(params->revCheckers, (PKIX_PL_Object *)checker, plContext),
1084
PKIX_LISTAPPENDITEMFAILED);
1033
"PKIX_ProcessingParams_InitRevocationChecker");
1034
PKIX_NULLCHECK_ONE(params);
1036
PKIX_DECREF(params->revChecker);
1037
PKIX_INCREF(checker);
1038
params->revChecker = checker;
1086
1040
PKIX_CHECK(PKIX_PL_Object_InvalidateCache
1087
((PKIX_PL_Object *)params, plContext),
1088
PKIX_OBJECTINVALIDATECACHEFAILED);
1041
((PKIX_PL_Object *)params, plContext),
1042
PKIX_OBJECTINVALIDATECACHEFAILED);
1094
if (list && params) {
1095
PKIX_DECREF(params->revCheckers);
1097
1045
PKIX_RETURN(PROCESSINGPARAMS);
1193
* FUNCTION: PKIX_ProcessingParams_IsCRLRevocationCheckingEnabled
1194
* (see comments in pkix_params.h)
1197
PKIX_ProcessingParams_IsCRLRevocationCheckingEnabled(
1198
PKIX_ProcessingParams *params,
1199
PKIX_Boolean *pEnabled,
1203
PKIX_ENTER(PROCESSINGPARAMS,
1204
"PKIX_ProcessingParams_IsCRLRevocationCheckingEnabled");
1205
PKIX_NULLCHECK_TWO(params, pEnabled);
1207
*pEnabled = params->isCrlRevocationCheckingEnabled;
1209
PKIX_RETURN(PROCESSINGPARAMS);
1213
* FUNCTION: PKIX_ProcessingParams_SetRevocationEnabled
1214
* (see comments in pkix_params.h)
1217
PKIX_ProcessingParams_SetRevocationEnabled(
1218
PKIX_ProcessingParams *params,
1219
PKIX_Boolean enabled,
1223
PKIX_ENTER(PROCESSINGPARAMS,
1224
"PKIX_ProcessingParams_SetRevocationEnabled");
1225
PKIX_NULLCHECK_ONE(params);
1227
params->isCrlRevocationCheckingEnabled = enabled;
1229
PKIX_CHECK(PKIX_PL_Object_InvalidateCache
1230
((PKIX_PL_Object *)params, plContext),
1231
PKIX_OBJECTINVALIDATECACHEFAILED);
1235
PKIX_RETURN(PROCESSINGPARAMS);
1239
* FUNCTION: pkix_ProcessingParams_GetRevocationEnabled
1242
* Retrieves the boolean value indicating whether Revocation Checking
1243
* should be performed, from the ProcessingParams pointed to by "params",
1244
* and stores the result at "pEnable".
1248
* Address of ProcessingParams whose revocationEnabled flag is to be
1249
* retrieved. Must be non-NULL.
1251
* Address where Boolean value will be stored. Must be non-NULL.
1253
* Platform-specific context pointer.
1256
* Thread Safe (see Thread Safety Definitions in Programmer's Guide)
1259
* Returns NULL if the function succeeds.
1260
* Returns a Fatal Error if the function fails in an unrecoverable way.
1263
pkix_ProcessingParams_GetRevocationEnabled(
1264
PKIX_ProcessingParams *params,
1265
PKIX_Boolean *pEnabled,
1269
PKIX_ENTER(PROCESSINGPARAMS,
1270
"pkix_ProcessingParams_GetRevocationEnabled");
1272
PKIX_NULLCHECK_TWO(params, pEnabled);
1274
*pEnabled = params->isCrlRevocationCheckingEnabled;
1276
PKIX_RETURN(PROCESSINGPARAMS);
1280
* FUNCTION: PKIX_ProcessingParams_IsNISTRevocationPolicyEnabled
1281
* (see comments in pkix_params.h)
1284
PKIX_ProcessingParams_IsNISTRevocationPolicyEnabled(
1285
PKIX_ProcessingParams *params,
1286
PKIX_Boolean *pEnabled,
1290
PKIX_ENTER(PROCESSINGPARAMS,
1291
"PKIX_ProcessingParams_IsNISTRevocationPolicyEnabled");
1292
PKIX_NULLCHECK_TWO(params, pEnabled);
1294
*pEnabled = params->isCrlRevocationCheckingEnabledWithNISTPolicy;
1296
PKIX_RETURN(PROCESSINGPARAMS);
1300
* FUNCTION: PKIX_ProcessingParams_SetNISTRevocationPolicyEnabled
1301
* (see comments in pkix_params.h)
1304
PKIX_ProcessingParams_SetNISTRevocationPolicyEnabled(
1305
PKIX_ProcessingParams *params,
1306
PKIX_Boolean enabled,
1310
PKIX_ENTER(PROCESSINGPARAMS,
1311
"PKIX_ProcessingParams_SetNISTRevocationPolicyEnabled");
1312
PKIX_NULLCHECK_ONE(params);
1314
params->isCrlRevocationCheckingEnabledWithNISTPolicy = enabled;
1316
PKIX_CHECK(PKIX_PL_Object_InvalidateCache
1317
((PKIX_PL_Object *)params, plContext),
1318
PKIX_OBJECTINVALIDATECACHEFAILED);
1322
PKIX_RETURN(PROCESSINGPARAMS);
1326
* FUNCTION: pkix_ProcessingParams_GetNISTRevocationPolicyEnabled
1329
* Retrieves the boolean value from the ProcessingParams pointed to by
1330
* "params", and stores the result at "pEnable". The value indicates
1331
* whether Revocation Checking should be performed according to nist
1332
* revocation policy.
1336
* Address of ProcessingParams whose revocationEnabledWithNistPolicy
1337
* flag is to be retrieved. Must be non-NULL.
1339
* Address where Boolean value will be stored. Must be non-NULL.
1341
* Platform-specific context pointer.
1344
* Thread Safe (see Thread Safety Definitions in Programmer's Guide)
1347
* Returns NULL if the function succeeds.
1348
* Returns a Fatal Error if the function fails in an unrecoverable way.
1351
pkix_ProcessingParams_GetNISTRevocationPolicyEnabled(
1352
PKIX_ProcessingParams *params,
1353
PKIX_Boolean *pEnabled,
1357
PKIX_ENTER(PROCESSINGPARAMS,
1358
"pkix_ProcessingParams_GetNISTRevocationPolicyEnabled");
1360
PKIX_NULLCHECK_TWO(params, pEnabled);
1362
*pEnabled = params->isCrlRevocationCheckingEnabledWithNISTPolicy;
1364
PKIX_RETURN(PROCESSINGPARAMS);
1368
1141
* FUNCTION: PKIX_ProcessingParams_SetResourceLimits
1369
1142
* (see comments in pkix_params.h)