| 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 <errno.h> | 10 #include <errno.h> |
| 11 #include <openssl/bio.h> | 11 #include <openssl/bio.h> |
| 12 #include <openssl/err.h> | 12 #include <openssl/err.h> |
| 13 #include <openssl/mem.h> | 13 #include <openssl/mem.h> |
| 14 #include <openssl/ssl.h> | 14 #include <openssl/ssl.h> |
| 15 #include <string.h> | 15 #include <string.h> |
| 16 | 16 |
| 17 #include "base/bind.h" | 17 #include "base/bind.h" |
| 18 #include "base/callback_helpers.h" | 18 #include "base/callback_helpers.h" |
| 19 #include "base/environment.h" | 19 #include "base/environment.h" |
| 20 #include "base/memory/singleton.h" | 20 #include "base/memory/singleton.h" |
| 21 #include "base/metrics/histogram.h" | 21 #include "base/metrics/histogram.h" |
| 22 #include "base/profiler/scoped_tracker.h" | 22 #include "base/profiler/scoped_tracker.h" |
| 23 #include "base/strings/string_piece.h" | 23 #include "base/strings/string_piece.h" |
| 24 #include "base/synchronization/lock.h" | 24 #include "base/synchronization/lock.h" |
| 25 #include "base/threading/thread_local.h" | 25 #include "base/threading/thread_local.h" |
| 26 #include "base/values.h" |
| 26 #include "crypto/ec_private_key.h" | 27 #include "crypto/ec_private_key.h" |
| 27 #include "crypto/openssl_util.h" | 28 #include "crypto/openssl_util.h" |
| 28 #include "crypto/scoped_openssl_types.h" | 29 #include "crypto/scoped_openssl_types.h" |
| 29 #include "net/base/net_errors.h" | 30 #include "net/base/net_errors.h" |
| 30 #include "net/cert/cert_policy_enforcer.h" | 31 #include "net/cert/cert_policy_enforcer.h" |
| 31 #include "net/cert/cert_verifier.h" | 32 #include "net/cert/cert_verifier.h" |
| 32 #include "net/cert/ct_ev_whitelist.h" | 33 #include "net/cert/ct_ev_whitelist.h" |
| 33 #include "net/cert/ct_verifier.h" | 34 #include "net/cert/ct_verifier.h" |
| 34 #include "net/cert/x509_certificate_net_log_param.h" | 35 #include "net/cert/x509_certificate_net_log_param.h" |
| 35 #include "net/cert/x509_util_openssl.h" | 36 #include "net/cert/x509_util_openssl.h" |
| (...skipping 1901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1937 } | 1938 } |
| 1938 return false; | 1939 return false; |
| 1939 } | 1940 } |
| 1940 | 1941 |
| 1941 scoped_refptr<X509Certificate> | 1942 scoped_refptr<X509Certificate> |
| 1942 SSLClientSocketOpenSSL::GetUnverifiedServerCertificateChain() const { | 1943 SSLClientSocketOpenSSL::GetUnverifiedServerCertificateChain() const { |
| 1943 return server_cert_; | 1944 return server_cert_; |
| 1944 } | 1945 } |
| 1945 | 1946 |
| 1946 } // namespace net | 1947 } // namespace net |
| OLD | NEW |