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

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

Issue 1080593003: Pass in a non-null CertVerifier into SSLClientSocket. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@boringnss
Patch Set: fix comment typo Created 5 years, 7 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_nss.cc ('k') | remoting/protocol/fake_stream_socket.h » ('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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 ssl_session_cache_shard_(context.ssl_session_cache_shard), 382 ssl_session_cache_shard_(context.ssl_session_cache_shard),
383 next_handshake_state_(STATE_NONE), 383 next_handshake_state_(STATE_NONE),
384 npn_status_(kNextProtoUnsupported), 384 npn_status_(kNextProtoUnsupported),
385 channel_id_xtn_negotiated_(false), 385 channel_id_xtn_negotiated_(false),
386 handshake_completed_(false), 386 handshake_completed_(false),
387 certificate_verified_(false), 387 certificate_verified_(false),
388 transport_security_state_(context.transport_security_state), 388 transport_security_state_(context.transport_security_state),
389 policy_enforcer_(context.cert_policy_enforcer), 389 policy_enforcer_(context.cert_policy_enforcer),
390 net_log_(transport_->socket()->NetLog()), 390 net_log_(transport_->socket()->NetLog()),
391 weak_factory_(this) { 391 weak_factory_(this) {
392 DCHECK(cert_verifier_);
392 } 393 }
393 394
394 SSLClientSocketOpenSSL::~SSLClientSocketOpenSSL() { 395 SSLClientSocketOpenSSL::~SSLClientSocketOpenSSL() {
395 Disconnect(); 396 Disconnect();
396 } 397 }
397 398
398 void SSLClientSocketOpenSSL::GetSSLCertRequestInfo( 399 void SSLClientSocketOpenSSL::GetSSLCertRequestInfo(
399 SSLCertRequestInfo* cert_request_info) { 400 SSLCertRequestInfo* cert_request_info) {
400 cert_request_info->host_and_port = host_and_port_; 401 cert_request_info->host_and_port = host_and_port_;
401 cert_request_info->cert_authorities = cert_authorities_; 402 cert_request_info->cert_authorities = cert_authorities_;
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after
1918 1919
1919 return result; 1920 return result;
1920 } 1921 }
1921 1922
1922 scoped_refptr<X509Certificate> 1923 scoped_refptr<X509Certificate>
1923 SSLClientSocketOpenSSL::GetUnverifiedServerCertificateChain() const { 1924 SSLClientSocketOpenSSL::GetUnverifiedServerCertificateChain() const {
1924 return server_cert_; 1925 return server_cert_;
1925 } 1926 }
1926 1927
1927 } // namespace net 1928 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_nss.cc ('k') | remoting/protocol/fake_stream_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698