Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: net/socket/ssl_client_socket_openssl.cc

Issue 1821633003: net: remove UsingTCPFastOpen() method from StreamSocket class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove use_tcp_fastopen_ from transport_client_socket_pool_test_util.cc Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/socket/ssl_client_socket_openssl.h ('k') | net/socket/ssl_client_socket_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_openssl.h ('k') | net/socket/ssl_client_socket_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698