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> |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #include "net/ssl/ssl_client_session_cache_openssl.h" | 45 #include "net/ssl/ssl_client_session_cache_openssl.h" |
46 #include "net/ssl/ssl_connection_status_flags.h" | 46 #include "net/ssl/ssl_connection_status_flags.h" |
47 #include "net/ssl/ssl_failure_state.h" | 47 #include "net/ssl/ssl_failure_state.h" |
48 #include "net/ssl/ssl_info.h" | 48 #include "net/ssl/ssl_info.h" |
49 #include "net/ssl/ssl_private_key.h" | 49 #include "net/ssl/ssl_private_key.h" |
50 | 50 |
51 #if defined(OS_WIN) | 51 #if defined(OS_WIN) |
52 #include "base/win/windows_version.h" | 52 #include "base/win/windows_version.h" |
53 #endif | 53 #endif |
54 | 54 |
55 #if !defined(OS_NACL) | |
56 #include "net/ssl/ssl_platform_key.h" | |
57 #endif | |
58 | |
59 #if defined(USE_NSS_CERTS) || defined(OS_IOS) | 55 #if defined(USE_NSS_CERTS) || defined(OS_IOS) |
60 #include "net/cert_net/nss_ocsp.h" | 56 #include "net/cert_net/nss_ocsp.h" |
61 #endif | 57 #endif |
62 | 58 |
63 namespace net { | 59 namespace net { |
64 | 60 |
65 namespace { | 61 namespace { |
66 | 62 |
67 // Enable this to see logging for state machine state transitions. | 63 // Enable this to see logging for state machine state transitions. |
68 #if 0 | 64 #if 0 |
(...skipping 2181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2250 tb_was_negotiated_ = true; | 2246 tb_was_negotiated_ = true; |
2251 return 1; | 2247 return 1; |
2252 } | 2248 } |
2253 } | 2249 } |
2254 | 2250 |
2255 *out_alert_value = SSL_AD_ILLEGAL_PARAMETER; | 2251 *out_alert_value = SSL_AD_ILLEGAL_PARAMETER; |
2256 return 0; | 2252 return 0; |
2257 } | 2253 } |
2258 | 2254 |
2259 } // namespace net | 2255 } // namespace net |
OLD | NEW |