From bc1e07c777d31055c22cc4a498a0267097063a97 Mon Sep 17 00:00:00 2001 From: "deanm@google.com" Date: Tue, 16 Sep 2008 14:32:44 +0000 Subject: 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 --- base/nss_init.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 base/nss_init.h (limited to 'base/nss_init.h') 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_ -- cgit v1.1