"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "nss/lib/libpkix/pkix/util/pkix_tools.c" between
nss-3.61.tar.gz and nss-3.62.tar.gz

About: NSS is a set of libraries, APIs, utilities, and documentation designed to support cross-platform development of security-enabled client and server applications. It provides a complete implementation of the crypto libraries used by Mozilla and other companies.

pkix_tools.c  (nss-3.61):pkix_tools.c  (nss-3.62)
skipping to change at line 1166 skipping to change at line 1166
*/ */
PKIX_Error * PKIX_Error *
pkix_CacheCert_Add( pkix_CacheCert_Add(
PKIX_CertStore *store, PKIX_CertStore *store,
PKIX_ComCertSelParams *certSelParams, PKIX_ComCertSelParams *certSelParams,
PKIX_List* certs, PKIX_List* certs,
void *plContext) void *plContext)
{ {
PKIX_List *cachedKeys = NULL; PKIX_List *cachedKeys = NULL;
PKIX_List *cachedValues = NULL; PKIX_List *cachedValues = NULL;
PKIX_List *cachedCerts = NULL;
PKIX_PL_Date *cacheValidUntilDate = NULL; PKIX_PL_Date *cacheValidUntilDate = NULL;
PKIX_PL_X500Name *subject = NULL; PKIX_PL_X500Name *subject = NULL;
PKIX_Error *cachedCertError = NULL; PKIX_Error *cachedCertError = NULL;
PKIX_CertStore_CheckTrustCallback trustCallback = NULL; PKIX_CertStore_CheckTrustCallback trustCallback = NULL;
PKIX_UInt32 cachePeriod = CACHE_ITEM_PERIOD_SECONDS; PKIX_UInt32 cachePeriod = CACHE_ITEM_PERIOD_SECONDS;
PKIX_UInt32 numCerts = 0; PKIX_UInt32 numCerts = 0;
PKIX_ENTER(BUILD, "pkix_CacheCert_Add"); PKIX_ENTER(BUILD, "pkix_CacheCert_Add");
PKIX_NULLCHECK_THREE(store, certSelParams, certs); PKIX_NULLCHECK_THREE(store, certSelParams, certs);
skipping to change at line 1222 skipping to change at line 1223
PKIX_CHECK(PKIX_PL_Date_Create_CurrentOffBySeconds PKIX_CHECK(PKIX_PL_Date_Create_CurrentOffBySeconds
(cachePeriod, &cacheValidUntilDate, plContext), (cachePeriod, &cacheValidUntilDate, plContext),
PKIX_DATECREATECURRENTOFFBYSECONDSFAILED); PKIX_DATECREATECURRENTOFFBYSECONDSFAILED);
PKIX_CHECK(PKIX_List_AppendItem PKIX_CHECK(PKIX_List_AppendItem
(cachedValues, (cachedValues,
(PKIX_PL_Object *)cacheValidUntilDate, (PKIX_PL_Object *)cacheValidUntilDate,
plContext), plContext),
PKIX_LISTAPPENDITEMFAILED); PKIX_LISTAPPENDITEMFAILED);
PKIX_DUPLICATE(certs, &cachedCerts, plContext,
PKIX_OBJECTDUPLICATELISTFAILED);
PKIX_CHECK(PKIX_List_AppendItem PKIX_CHECK(PKIX_List_AppendItem
(cachedValues, (cachedValues,
(PKIX_PL_Object *)certs, (PKIX_PL_Object *)cachedCerts,
plContext), plContext),
PKIX_LISTAPPENDITEMFAILED); PKIX_LISTAPPENDITEMFAILED);
cachedCertError = PKIX_PL_HashTable_Add cachedCertError = PKIX_PL_HashTable_Add
(cachedCertTable, (cachedCertTable,
(PKIX_PL_Object *) cachedKeys, (PKIX_PL_Object *) cachedKeys,
(PKIX_PL_Object *) cachedValues, (PKIX_PL_Object *) cachedValues,
plContext); plContext);
pkix_cAddCount++; pkix_cAddCount++;
skipping to change at line 1246 skipping to change at line 1250
if (cachedCertError != NULL) { if (cachedCertError != NULL) {
PKIX_DEBUG("PKIX_PL_HashTable_Add for Certs skipped: " PKIX_DEBUG("PKIX_PL_HashTable_Add for Certs skipped: "
"entry existed\n"); "entry existed\n");
} }
cleanup: cleanup:
PKIX_DECREF(subject); PKIX_DECREF(subject);
PKIX_DECREF(cachedKeys); PKIX_DECREF(cachedKeys);
PKIX_DECREF(cachedValues); PKIX_DECREF(cachedValues);
PKIX_DECREF(cachedCerts);
PKIX_DECREF(cacheValidUntilDate); PKIX_DECREF(cacheValidUntilDate);
PKIX_DECREF(cachedCertError); PKIX_DECREF(cachedCertError);
PKIX_RETURN(BUILD); PKIX_RETURN(BUILD);
} }
/* /*
* FUNCTION: pkix_CacheCrlEntry_Lookup * FUNCTION: pkix_CacheCrlEntry_Lookup
* DESCRIPTION: * DESCRIPTION:
* *
 End of changes. 4 change blocks. 
1 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)