| Index: nss/lib/certdb/certdb.c
|
| ===================================================================
|
| --- nss/lib/certdb/certdb.c (revision 195639)
|
| +++ nss/lib/certdb/certdb.c (working copy)
|
| @@ -955,7 +955,7 @@
|
| }
|
|
|
| SECStatus
|
| -CERT_GetCertTimes(CERTCertificate *c, PRTime *notBefore, PRTime *notAfter)
|
| +CERT_GetCertTimes(const CERTCertificate *c, PRTime *notBefore, PRTime *notAfter)
|
| {
|
| SECStatus rv;
|
|
|
| @@ -983,7 +983,8 @@
|
| * Check the validity times of a certificate
|
| */
|
| SECCertTimeValidity
|
| -CERT_CheckCertValidTimes(CERTCertificate *c, PRTime t, PRBool allowOverride)
|
| +CERT_CheckCertValidTimes(const CERTCertificate *c, PRTime t,
|
| + PRBool allowOverride)
|
| {
|
| PRTime notBefore, notAfter, llPendingSlop, tmp1;
|
| SECStatus rv;
|
| @@ -1416,7 +1417,7 @@
|
|
|
|
|
| SECStatus
|
| -cert_VerifySubjectAltName(CERTCertificate *cert, const char *hn)
|
| +cert_VerifySubjectAltName(const CERTCertificate *cert, const char *hn)
|
| {
|
| PRArenaPool * arena = NULL;
|
| CERTGeneralName * nameList = NULL;
|
| @@ -1553,7 +1554,7 @@
|
| * - return value is NULL
|
| */
|
| CERTGeneralName *
|
| -cert_GetSubjectAltNameList(CERTCertificate *cert, PRArenaPool *arena)
|
| +cert_GetSubjectAltNameList(const CERTCertificate *cert, PRArenaPool *arena)
|
| {
|
| CERTGeneralName * nameList = NULL;
|
| SECStatus rv = SECFailure;
|
| @@ -1760,7 +1761,7 @@
|
| * that they are using.
|
| */
|
| SECStatus
|
| -CERT_VerifyCertName(CERTCertificate *cert, const char *hn)
|
| +CERT_VerifyCertName(const CERTCertificate *cert, const char *hn)
|
| {
|
| char * cn;
|
| SECStatus rv;
|
| @@ -1805,7 +1806,7 @@
|
| }
|
|
|
| PRBool
|
| -CERT_CompareCerts(CERTCertificate *c1, CERTCertificate *c2)
|
| +CERT_CompareCerts(const CERTCertificate *c1, const CERTCertificate *c2)
|
| {
|
| SECComparison comp;
|
|
|
| @@ -2905,7 +2906,7 @@
|
| * that turns out to be necessary.
|
| */
|
| void
|
| -CERT_LockCertTrust(CERTCertificate *cert)
|
| +CERT_LockCertTrust(const CERTCertificate *cert)
|
| {
|
| PORT_Assert(certTrustLock != NULL);
|
| PZ_Lock(certTrustLock);
|
| @@ -2963,7 +2964,7 @@
|
| * Free the cert trust lock
|
| */
|
| void
|
| -CERT_UnlockCertTrust(CERTCertificate *cert)
|
| +CERT_UnlockCertTrust(const CERTCertificate *cert)
|
| {
|
| PRStatus prstat;
|
|
|
|
|