OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // OpenSSL binding for SSLClientSocket. The class layout and general principle | 5 // OpenSSL binding for SSLClientSocket. The class layout and general principle |
6 // of operation is derived from SSLClientSocketNSS. | 6 // of operation is derived from SSLClientSocketNSS. |
7 | 7 |
8 #include "net/socket/ssl_client_socket_openssl.h" | 8 #include "net/socket/ssl_client_socket_openssl.h" |
9 | 9 |
10 #include <openssl/ssl.h> | 10 #include <openssl/ssl.h> |
11 #include <openssl/err.h> | 11 #include <openssl/err.h> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
17 #include "crypto/openssl_util.h" | 17 #include "crypto/openssl_util.h" |
18 #include "net/base/cert_verifier.h" | 18 #include "net/base/cert_verifier.h" |
19 #include "net/base/net_errors.h" | 19 #include "net/base/net_errors.h" |
20 #include "net/base/openssl_private_key_store.h" | 20 #include "net/base/openssl_private_key_store.h" |
| 21 #include "net/base/single_request_cert_verifier.h" |
21 #include "net/base/ssl_cert_request_info.h" | 22 #include "net/base/ssl_cert_request_info.h" |
22 #include "net/base/ssl_connection_status_flags.h" | 23 #include "net/base/ssl_connection_status_flags.h" |
23 #include "net/base/ssl_info.h" | 24 #include "net/base/ssl_info.h" |
24 #include "net/base/x509_certificate_net_log_param.h" | 25 #include "net/base/x509_certificate_net_log_param.h" |
25 #include "net/socket/ssl_error_params.h" | 26 #include "net/socket/ssl_error_params.h" |
26 | 27 |
27 namespace net { | 28 namespace net { |
28 | 29 |
29 namespace { | 30 namespace { |
30 | 31 |
(...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1280 net_log_.AddByteTransferEvent(NetLog::TYPE_SSL_SOCKET_BYTES_SENT, rv, | 1281 net_log_.AddByteTransferEvent(NetLog::TYPE_SSL_SOCKET_BYTES_SENT, rv, |
1281 user_write_buf_->data()); | 1282 user_write_buf_->data()); |
1282 return rv; | 1283 return rv; |
1283 } | 1284 } |
1284 | 1285 |
1285 int err = SSL_get_error(ssl_, rv); | 1286 int err = SSL_get_error(ssl_, rv); |
1286 return MapOpenSSLError(err, err_tracer); | 1287 return MapOpenSSLError(err, err_tracer); |
1287 } | 1288 } |
1288 | 1289 |
1289 } // namespace net | 1290 } // namespace net |
OLD | NEW |