summaryrefslogtreecommitdiff
path: root/security/nss/lib/certdb/crl.c
diff options
context:
space:
mode:
authorjpierre%netscape.com <devnull@localhost>2002-11-15 05:04:05 +0000
committerjpierre%netscape.com <devnull@localhost>2002-11-15 05:04:05 +0000
commitd7e671e82a998d547db491f392baf6bfd2f7e90f (patch)
tree4a2c08450a20891b5cb6ad9de410e4cce05fb931 /security/nss/lib/certdb/crl.c
parenta56f67d0b112522c378d23e04fe3a92da4794873 (diff)
downloadnss-hg-d7e671e82a998d547db491f392baf6bfd2f7e90f.tar.gz
Patch for 180228 - export CRL cache flush API . r=wtc
Diffstat (limited to 'security/nss/lib/certdb/crl.c')
-rw-r--r--security/nss/lib/certdb/crl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/security/nss/lib/certdb/crl.c b/security/nss/lib/certdb/crl.c
index 2be0f75c3..92f398ae8 100644
--- a/security/nss/lib/certdb/crl.c
+++ b/security/nss/lib/certdb/crl.c
@@ -634,8 +634,6 @@ loser:
SECStatus SEC_DestroyCrl(CERTSignedCrl *crl);
-void RefreshIssuer(SECItem* crlKey);
-
CERTSignedCrl *
crl_storeCRL (PK11SlotInfo *slot,char *url,
CERTSignedCrl *newCrl, SECItem *derCrl, int type)
@@ -695,7 +693,7 @@ crl_storeCRL (PK11SlotInfo *slot,char *url,
}
/* invalidate CRL cache for this issuer */
- RefreshIssuer(&newCrl->crl.derName);
+ CERT_CRLCacheRefreshIssuer(NULL, &newCrl->crl.derName);
/* Write the new entry into the data base */
crlHandle = PK11_PutCrl(slot, derCrl, &newCrl->crl.derName, url, type);
if (crlHandle != CK_INVALID_HANDLE) {
@@ -1915,13 +1913,15 @@ SEC_FindCrlByName(CERTCertDBHandle *handle, SECItem *crlKey, int type)
return acrl;
}
-void RefreshIssuer(SECItem* crlKey)
+void CERT_CRLCacheRefreshIssuer(CERTCertDBHandle* dbhandle, SECItem* crlKey)
{
CERTSignedCrl* acrl = NULL;
CRLDPCache* cache = NULL;
SECStatus rv = SECSuccess;
PRBool writeLocked = PR_FALSE;
+ (void) dbhandle; /* silence compiler warnings */
+
rv = AcquireDPCache(NULL, crlKey, NULL, 0, NULL, &cache, &writeLocked);
if (SECSuccess != rv)
{