summaryrefslogtreecommitdiffstats
path: root/base/nss_init.h
diff options
context:
space:
mode:
authordeanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-16 14:32:44 +0000
committerdeanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-16 14:32:44 +0000
commitbc1e07c777d31055c22cc4a498a0267097063a97 (patch)
tree409ae29dd00141b225766b23a235dcb10c4d426c /base/nss_init.h
parent8aa777462e5b19f936e82a33d3438100857499da (diff)
downloadchromium_src-bc1e07c777d31055c22cc4a498a0267097063a97.zip
chromium_src-bc1e07c777d31055c22cc4a498a0267097063a97.tar.gz
chromium_src-bc1e07c777d31055c22cc4a498a0267097063a97.tar.bz2
Add an HMAC implementation using NSS. Include centralized NSS initialization, based on code from phajdan.jr.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2260 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/nss_init.h')
-rw-r--r--base/nss_init.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/base/nss_init.h b/base/nss_init.h
new file mode 100644
index 0000000..181d292
--- /dev/null
+++ b/base/nss_init.h
@@ -0,0 +1,17 @@
+// Copyright (c) 2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BASE_NSS_INIT_H_
+#define BASE_NSS_INIT_H_
+
+namespace base {
+
+// Initialize NSS if it isn't already initialized. This must be called before
+// any other NSS functions. This function is thread-safe, and NSS will only
+// ever be initialized once. NSS will be properly shut down on program exit.
+void EnsureNSSInit();
+
+} // namespace base
+
+#endif // BASE_NSS_INIT_H_