OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/ocsp/nss_ocsp.h" | 5 #include "net/ocsp/nss_ocsp.h" |
6 | 6 |
7 // Work around https://bugzilla.mozilla.org/show_bug.cgi?id=455424 | |
8 // until NSS 3.12.2 comes out and we update to it. | |
9 #define Lock FOO_NSS_Lock | |
10 #include <certt.h> | 7 #include <certt.h> |
11 #undef Lock | |
12 #include <certdb.h> | 8 #include <certdb.h> |
13 #include <ocsp.h> | 9 #include <ocsp.h> |
14 #include <nspr.h> | 10 #include <nspr.h> |
15 #include <nss.h> | 11 #include <nss.h> |
16 #include <secerr.h> | 12 #include <secerr.h> |
17 | 13 |
18 #include <string> | 14 #include <string> |
19 | 15 |
20 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
21 #include "base/condition_variable.h" | 17 #include "base/condition_variable.h" |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 // This function would be called before NSS initialization. | 557 // This function would be called before NSS initialization. |
562 void SetURLRequestContextForOCSP(URLRequestContext* request_context) { | 558 void SetURLRequestContextForOCSP(URLRequestContext* request_context) { |
563 OCSPInitSingleton::set_url_request_context(request_context); | 559 OCSPInitSingleton::set_url_request_context(request_context); |
564 } | 560 } |
565 | 561 |
566 URLRequestContext* GetURLRequestContextForOCSP() { | 562 URLRequestContext* GetURLRequestContextForOCSP() { |
567 return OCSPInitSingleton::url_request_context(); | 563 return OCSPInitSingleton::url_request_context(); |
568 } | 564 } |
569 | 565 |
570 } // namespace net | 566 } // namespace net |
OLD | NEW |