Lines Matching refs:nss
8 #include <nss.h>
34 // USE_NSS means we use NSS for everything crypto-related. If USE_NSS is not
35 // defined, such as on Mac and Windows, we use NSS for SSL only -- we don't
36 // use NSS for crypto or certificate verification, and we don't use the NSS
48 const char kNSSDatabaseName[] = "Real NSS database";
66 result = StringPrintf("NSS error code: %d", PR_GetError());
100 // This callback for NSS forwards all requests to a caller-specified
132 // NSS creates a local cache of the sqlite database if it detects that the
135 // (NSS bug https://bugzilla.mozilla.org/show_bug.cgi?id=578561). So we set
136 // the NSS environment variable NSS_SDB_USE_CACHE to "yes" to override NSS's
193 // Separate from the NSS singleton because we initialize NSPR on the UI thread.
194 // Now that we're leaking the singleton, we could merge back with the NSS
204 // NOTE(willchan): We don't actually execute this code since we leak NSS to
205 // prevent non-joinable threads from using NSS after it's already been shut
230 // This creates another DB slot in NSS that is read/write, unlike
233 // NSS before we had a cryptohome mounted).
303 // If we weren't supposed to enable the TPM for NSS, then return
316 // This method is used to force NSS to be initialized without a DB.
334 // We *must* have NSS >= 3.12.3. See bug 26448.
340 // Also check the run-time NSS version.
343 // It turns out many people have misconfigured NSS setups, where
344 // their run-time NSPR doesn't match the one their NSS was compiled
347 "We depend on NSS >= 3.12.3, and this error is not fatal "
348 "only because many people have busted NSS setups (for "
350 "Please upgrade to the latest NSS and NSPR, and if you "
359 // Use the system certificate store, so initialize NSS without database.
366 LOG(ERROR) << "Error initializing NSS without a persistent "
388 LOG(ERROR) << "Error initializing NSS with a persistent "
394 VLOG(1) << "Initializing NSS without a persistent database.";
397 LOG(ERROR) << "Error initializing NSS without a persistent "
405 // If we haven't initialized the password for the NSS databases,
410 // PK11_InitPin may write to the keyDB, but no other thread can use NSS
422 // NOTE(willchan): We don't actually execute this code since we leak NSS to
423 // prevent non-joinable threads from using NSS after it's already been shut
456 // Load nss's built-in root certs.
468 // Load the given module for this NSS session.
479 // on NSS codebase to address this.
483 NSS: "
522 // This tries to load the opencryptoki module so NSS can talk to
547 // If this is set to true NSS is forced to be initialized without a DB.
606 // Some NSS libraries are linked dynamically so load them here.
614 // For Debian derivaties NSS libraries are located here.
615 paths.push_back(FilePath("/usr/lib/nss"));
637 VLOG(3) << "NSS libraries loaded.";
639 LOG(WARNING) << "Failed to load NSS libraries.";
662 // May be NULL if the lock is not needed in our version of NSS.