summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/nss/lib/softoken/keydb.c3
-rw-r--r--security/nss/lib/softoken/pcertdb.c9
2 files changed, 5 insertions, 7 deletions
diff --git a/security/nss/lib/softoken/keydb.c b/security/nss/lib/softoken/keydb.c
index df17f7f4b..81e2802ea 100644
--- a/security/nss/lib/softoken/keydb.c
+++ b/security/nss/lib/softoken/keydb.c
@@ -49,7 +49,6 @@
#include "lowpbe.h"
#include "secerr.h"
#include "cdbhdl.h"
-#include "nsslocks.h"
#include "keydbi.h"
#include "softoken.h"
@@ -171,7 +170,7 @@ static void
keydb_InitLocks(NSSLOWKEYDBHandle *handle)
{
if (handle->lock == NULL) {
- nss_InitLock(&handle->lock, nssILockKeyDB);
+ handle->lock = PZ_NewLock(nssILockKeyDB);
}
return;
diff --git a/security/nss/lib/softoken/pcertdb.c b/security/nss/lib/softoken/pcertdb.c
index 3c9959a30..6630b6134 100644
--- a/security/nss/lib/softoken/pcertdb.c
+++ b/security/nss/lib/softoken/pcertdb.c
@@ -54,7 +54,6 @@
#include "secerr.h"
#include "nssilock.h"
#include "prmon.h"
-#include "nsslocks.h"
#include "base64.h"
#include "sechash.h"
#include "plhash.h"
@@ -99,7 +98,7 @@ void
certdb_InitDBLock(NSSLOWCERTCertDBHandle *handle)
{
if (dbLock == NULL) {
- nss_InitLock(&dbLock, nssILockCertDB);
+ dbLock = PZ_NewLock(nssILockCertDB);
PORT_Assert(dbLock != NULL);
}
}
@@ -108,19 +107,19 @@ SECStatus
nsslowcert_InitLocks(void)
{
if (freeListLock == NULL) {
- nss_InitLock(&freeListLock, nssILockRefLock);
+ freeListLock = PZ_NewLock(nssILockRefLock);
if (freeListLock == NULL) {
return SECFailure;
}
}
if (certRefCountLock == NULL) {
- nss_InitLock(&certRefCountLock, nssILockRefLock);
+ certRefCountLock = PZ_NewLock(nssILockRefLock);
if (certRefCountLock == NULL) {
return SECFailure;
}
}
if (certTrustLock == NULL ) {
- nss_InitLock(&certTrustLock, nssILockCertDB);
+ certTrustLock = PZ_NewLock(nssILockCertDB);
if (certTrustLock == NULL) {
return SECFailure;
}