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 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 transport_->socket()->SetOmniboxSpeculation(); | 759 transport_->socket()->SetOmniboxSpeculation(); |
760 } else { | 760 } else { |
761 NOTREACHED(); | 761 NOTREACHED(); |
762 } | 762 } |
763 } | 763 } |
764 | 764 |
765 bool SSLClientSocketOpenSSL::WasEverUsed() const { | 765 bool SSLClientSocketOpenSSL::WasEverUsed() const { |
766 return was_ever_used_; | 766 return was_ever_used_; |
767 } | 767 } |
768 | 768 |
769 bool SSLClientSocketOpenSSL::UsingTCPFastOpen() const { | |
770 if (transport_.get() && transport_->socket()) | |
771 return transport_->socket()->UsingTCPFastOpen(); | |
772 | |
773 NOTREACHED(); | |
774 return false; | |
775 } | |
776 | |
777 bool SSLClientSocketOpenSSL::GetSSLInfo(SSLInfo* ssl_info) { | 769 bool SSLClientSocketOpenSSL::GetSSLInfo(SSLInfo* ssl_info) { |
778 ssl_info->Reset(); | 770 ssl_info->Reset(); |
779 if (server_cert_chain_->empty()) | 771 if (server_cert_chain_->empty()) |
780 return false; | 772 return false; |
781 | 773 |
782 ssl_info->cert = server_cert_verify_result_.verified_cert; | 774 ssl_info->cert = server_cert_verify_result_.verified_cert; |
783 ssl_info->unverified_cert = server_cert_; | 775 ssl_info->unverified_cert = server_cert_; |
784 ssl_info->cert_status = server_cert_verify_result_.cert_status; | 776 ssl_info->cert_status = server_cert_verify_result_.cert_status; |
785 ssl_info->is_issued_by_known_root = | 777 ssl_info->is_issued_by_known_root = |
786 server_cert_verify_result_.is_issued_by_known_root; | 778 server_cert_verify_result_.is_issued_by_known_root; |
(...skipping 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2310 tb_was_negotiated_ = true; | 2302 tb_was_negotiated_ = true; |
2311 return 1; | 2303 return 1; |
2312 } | 2304 } |
2313 } | 2305 } |
2314 | 2306 |
2315 *out_alert_value = SSL_AD_ILLEGAL_PARAMETER; | 2307 *out_alert_value = SSL_AD_ILLEGAL_PARAMETER; |
2316 return 0; | 2308 return 0; |
2317 } | 2309 } |
2318 | 2310 |
2319 } // namespace net | 2311 } // namespace net |
OLD | NEW |