Fix for 172678 - move internal functions InitCRLCache and ShutdownCRLCache to private header certi.h
authorjpierre%netscape.com
Sat, 05 Oct 2002 02:24:25 +0000
changeset 3685 ef8b92452440686fdd74c1c66a592026fa3ff3f0
parent 3683 b15882970a9be1ce7febc34eaecc9661dcf89d80
child 3686 115493efb659a4a273f5109d12189ca13e188e90
child 3687 e5a703bf11fc813939815ec553edcc82c3420b56
child 3689 fda3c3e075ac3a03f47a389d3fd5c20065f67445
child 3747 93a0f0ede34f4f7ad5f3decd412516ebb75116ca
push idunknown
push userunknown
push dateunknown
bugs172678
Fix for 172678 - move internal functions InitCRLCache and ShutdownCRLCache to private header certi.h
security/nss/lib/certdb/cert.h
security/nss/lib/certdb/certi.h
security/nss/lib/certdb/manifest.mn
security/nss/lib/nss/nssinit.c
--- a/security/nss/lib/certdb/cert.h
+++ b/security/nss/lib/certdb/cert.h
@@ -1439,18 +1439,15 @@ CERT_SPKDigestValueForCert(PRArenaPool *
 			   SECOidTag digestAlg, SECItem *fill);
 
 /*
  * fill in nsCertType field of the cert based on the cert extension
  */
 extern SECStatus CERT_GetCertType(CERTCertificate *cert);
 
 
-SECStatus InitCRLCache(void);
-SECStatus ShutdownCRLCache(void);
-
 SECStatus CERT_CheckCRL(CERTCertificate* cert, CERTCertificate* issuer,
                         SECItem* dp, int64 t, void* wincx);
 
 
 SEC_END_PROTOS
 
 #endif /* _CERT_H_ */
--- a/security/nss/lib/certdb/certi.h
+++ b/security/nss/lib/certdb/certi.h
@@ -174,10 +174,13 @@ struct CRLIssuerCacheStr {
 
 struct CRLCacheStr {
     PRLock* lock;
     /* hash table of issuer to CRLIssuerCacheStr,
        indexed by issuer DER subject */
     PLHashTable* issuers;
 };
 
+SECStatus InitCRLCache(void);
+SECStatus ShutdownCRLCache(void);
+
 #endif /* _CERTI_H_ */
 
--- a/security/nss/lib/certdb/manifest.mn
+++ b/security/nss/lib/certdb/manifest.mn
@@ -37,16 +37,17 @@ EXPORTS = \
 	certt.h \
 	certdb.h \
 	$(NULL)
 
 PRIVATE_EXPORTS = \
 	genname.h \
 	xconst.h \
 	certxutl.h \
+	certi.h \
 	$(NULL)
 
 MODULE = nss
 
 CSRCS = \
 	alg1485.c \
 	certdb.c \
 	certv3.c \
--- a/security/nss/lib/nss/nssinit.c
+++ b/security/nss/lib/nss/nssinit.c
@@ -46,16 +46,17 @@
 #include "sslproto.h"
 #include "secmod.h"
 #include "secoid.h"
 #include "nss.h"
 #include "secrng.h"
 #include "pk11func.h"
 
 #include "pki3hack.h"
+#include "certi.h"
 
 /*
  * On Windows nss3.dll needs to export the symbol 'mktemp' to be
  * fully backward compatible with the nss3.dll in NSS 3.2.x and
  * 3.3.x.  This symbol was unintentionally exported and its
  * definition (in DBM) was moved from nss3.dll to softokn3.dll
  * in NSS 3.4.  See bug 142575.
  */