Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3214)

Unified Diff: base/nss_util.h

Issue 6684018: Initialize NSS with no DB in the renderer process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup] Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/nss_util.cc » ('j') | chrome/renderer/render_process_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/nss_util.h
diff --git a/base/nss_util.h b/base/nss_util.h
index 10bbdfb41eb734f6f80ab104cf45cb87cb5fcd53..dc368a52ddeec6f0d74a5641d9ca8922fe5645d9 100644
--- a/base/nss_util.h
+++ b/base/nss_util.h
@@ -37,6 +37,29 @@ void EnsureNSPRInit();
// ever be initialized once. NSS will be properly shut down on program exit.
void EnsureNSSInit();
+// Initialize NSS without a persistent DB. This is used the special case
wtc 2011/03/15 00:21:45 Nit: add "in" or "for" before "the special case"
Alpha Left Google 2011/03/15 01:27:51 Done.
+// where access of persistent DB is prohibited. This method is only used in
+// the renderer process to enable use of the NSS crypto library.
wtc 2011/03/15 00:21:45 Avoid mentioning "renderer process" in the 'base'
Alpha Left Google 2011/03/15 01:27:51 Done.
+//
+// NSS will be initialized with an empty temporary DB with no root certs.
+// Access to user security modules is also not allowed.
wtc 2011/03/15 00:21:45 This should say: NSS will be initialized without
+//
+// This function is thread-safe, and NSS will only ever be initialized once.
+// NSS will be properly shut down on program exit.
+//
+// After calling this function, calling EnsureNSSInit() will have no effect.
+//
+// *ONLY USE THIS IN THE RENDERER PROCESS*
wtc 2011/03/15 00:21:45 This warning should be removed, or made more gener
Alpha Left Google 2011/03/15 01:27:51 Done.
+void EnsureNSSNoDBInit();
+
+// This methos is used to disable checks in NSS when used in a forked process.
wtc 2011/03/15 00:21:45 Typo: methos => method Please document that Disab
Alpha Left Google 2011/03/15 01:27:51 Done.
+// NSS is fork-sensitive to avoid problems when using user security modules in
+// a forked process. However if we are sure there are no modules loaded before
+// the process is forked then there is no harm disabling the check.
+//
+// *USE THIS WITH CAUTION*
+void DisableNSSForkCheck();
+
// Check if the current NSS version is greater than or equals to |version|.
// A sample version string is "3.12.3".
bool CheckNSSVersion(const char* version);
« no previous file with comments | « no previous file | base/nss_util.cc » ('j') | chrome/renderer/render_process_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698