summaryrefslogtreecommitdiffstats
path: root/net/ocsp/nss_ocsp.h
diff options
context:
space:
mode:
authorukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-24 03:48:16 +0000
committerukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-24 03:48:16 +0000
commit3d4ae9a42320916079372a65c0ee527a150ec134 (patch)
tree5c61bf41db3356e4ab5846c50c7f6dca63a8d8c4 /net/ocsp/nss_ocsp.h
parentcbdd7de00e63b0de23be30e30bf3bbe72f6935ca (diff)
downloadchromium_src-3d4ae9a42320916079372a65c0ee527a150ec134.zip
chromium_src-3d4ae9a42320916079372a65c0ee527a150ec134.tar.gz
chromium_src-3d4ae9a42320916079372a65c0ee527a150ec134.tar.bz2
Implement OCSP handler for NSS.
BUG=none TEST=none Review URL: http://codereview.chromium.org/126046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21508 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/ocsp/nss_ocsp.h')
-rw-r--r--net/ocsp/nss_ocsp.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/ocsp/nss_ocsp.h b/net/ocsp/nss_ocsp.h
new file mode 100644
index 0000000..9492cb71
--- /dev/null
+++ b/net/ocsp/nss_ocsp.h
@@ -0,0 +1,22 @@
+// Copyright (c) 2009 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 NET_OCSP_NSS_OCSP_H_
+#define NET_OCSP_NSS_OCSP_H_
+
+class URLRequestContext;
+
+namespace net {
+
+// Initializes OCSP handlers for NSS. This must be called before any
+// certificate verification functions. This function is thread-safe, and OCSP
+// handlers will only ever be initialized once.
+void EnsureOCSPInit();
+
+// Set URLRequestContext for OCSP handlers.
+void SetURLRequestContextForOCSP(URLRequestContext* request_context);
+
+} // namespace net
+
+#endif // NET_OCSP_NSS_OCSP_H_