| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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 // This file includes code SSLClientSocketNSS::DoVerifyCertComplete() derived | 5 // This file includes code SSLClientSocketNSS::DoVerifyCertComplete() derived |
| 6 // from AuthCertificateCallback() in | 6 // from AuthCertificateCallback() in |
| 7 // mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp. | 7 // mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp. |
| 8 | 8 |
| 9 /* ***** BEGIN LICENSE BLOCK ***** | 9 /* ***** BEGIN LICENSE BLOCK ***** |
| 10 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 10 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 * | 45 * |
| 46 * ***** END LICENSE BLOCK ***** */ | 46 * ***** END LICENSE BLOCK ***** */ |
| 47 | 47 |
| 48 #include "net/socket/ssl_client_socket_nss.h" | 48 #include "net/socket/ssl_client_socket_nss.h" |
| 49 | 49 |
| 50 #include <certdb.h> | 50 #include <certdb.h> |
| 51 #include <keyhi.h> | 51 #include <keyhi.h> |
| 52 #include <nspr.h> | 52 #include <nspr.h> |
| 53 #include <nss.h> | 53 #include <nss.h> |
| 54 #include <secerr.h> | 54 #include <secerr.h> |
| 55 // Work around https://bugzilla.mozilla.org/show_bug.cgi?id=455424 | |
| 56 // until NSS 3.12.2 comes out and we update to it. | |
| 57 #define Lock FOO_NSS_Lock | |
| 58 #include <ssl.h> | 55 #include <ssl.h> |
| 59 #include <sslerr.h> | 56 #include <sslerr.h> |
| 60 #include <pk11pub.h> | 57 #include <pk11pub.h> |
| 61 #undef Lock | |
| 62 | 58 |
| 63 #include "base/compiler_specific.h" | 59 #include "base/compiler_specific.h" |
| 64 #include "base/logging.h" | 60 #include "base/logging.h" |
| 65 #include "base/nss_init.h" | 61 #include "base/nss_init.h" |
| 66 #include "base/string_util.h" | 62 #include "base/string_util.h" |
| 67 #include "net/base/cert_verifier.h" | 63 #include "net/base/cert_verifier.h" |
| 68 #include "net/base/io_buffer.h" | 64 #include "net/base/io_buffer.h" |
| 69 #include "net/base/load_log.h" | 65 #include "net/base/load_log.h" |
| 70 #include "net/base/net_errors.h" | 66 #include "net/base/net_errors.h" |
| 71 #include "net/base/ssl_cert_request_info.h" | 67 #include "net/base/ssl_cert_request_info.h" |
| (...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1144 } | 1140 } |
| 1145 PRErrorCode prerr = PR_GetError(); | 1141 PRErrorCode prerr = PR_GetError(); |
| 1146 if (prerr == PR_WOULD_BLOCK_ERROR) { | 1142 if (prerr == PR_WOULD_BLOCK_ERROR) { |
| 1147 return ERR_IO_PENDING; | 1143 return ERR_IO_PENDING; |
| 1148 } | 1144 } |
| 1149 LeaveFunction(""); | 1145 LeaveFunction(""); |
| 1150 return NetErrorFromNSPRError(prerr); | 1146 return NetErrorFromNSPRError(prerr); |
| 1151 } | 1147 } |
| 1152 | 1148 |
| 1153 } // namespace net | 1149 } // namespace net |
| OLD | NEW |