|
|
d417c4 |
diff --git a/security/certverifier/NSSCertDBTrustDomain.cpp b/security/certverifier/NSSCertDBTrustDomain.cpp
|
|
|
d417c4 |
--- a/security/certverifier/NSSCertDBTrustDomain.cpp
|
|
|
d417c4 |
+++ b/security/certverifier/NSSCertDBTrustDomain.cpp
|
|
|
d417c4 |
@@ -1057,22 +1057,20 @@ InitializeNSS(const nsACString& dir, boo
|
|
|
d417c4 |
// "/usr/lib/nss/libnssckbi.so".
|
|
|
d417c4 |
uint32_t flags = NSS_INIT_NOROOTINIT | NSS_INIT_OPTIMIZESPACE;
|
|
|
d417c4 |
if (readOnly) {
|
|
|
d417c4 |
flags |= NSS_INIT_READONLY;
|
|
|
d417c4 |
}
|
|
|
d417c4 |
if (!loadPKCS11Modules) {
|
|
|
d417c4 |
flags |= NSS_INIT_NOMODDB;
|
|
|
d417c4 |
}
|
|
|
d417c4 |
- nsAutoCString dbTypeAndDirectory("sql:");
|
|
|
d417c4 |
- dbTypeAndDirectory.Append(dir);
|
|
|
d417c4 |
MOZ_LOG(gCertVerifierLog, LogLevel::Debug,
|
|
|
d417c4 |
- ("InitializeNSS(%s, %d, %d)", dbTypeAndDirectory.get(), readOnly,
|
|
|
d417c4 |
+ ("InitializeNSS(%s, %d, %d)", PromiseFlatCString(dir).get(), readOnly,
|
|
|
d417c4 |
loadPKCS11Modules));
|
|
|
d417c4 |
- SECStatus srv = NSS_Initialize(dbTypeAndDirectory.get(), "", "",
|
|
|
d417c4 |
+ SECStatus srv = NSS_Initialize(PromiseFlatCString(dir).get(), "", "",
|
|
|
d417c4 |
SECMOD_DB, flags);
|
|
|
d417c4 |
if (srv != SECSuccess) {
|
|
|
d417c4 |
return srv;
|
|
|
d417c4 |
}
|
|
|
d417c4 |
|
|
|
d417c4 |
if (!readOnly) {
|
|
|
d417c4 |
UniquePK11SlotInfo slot(PK11_GetInternalKeySlot());
|
|
|
d417c4 |
if (!slot) {
|