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

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

Issue 1579233002: Rename CertPolicyEnforcer to CTPolicyEnforcer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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_pool.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 17 matching lines...) Expand all
28 #include "base/profiler/scoped_tracker.h" 28 #include "base/profiler/scoped_tracker.h"
29 #include "base/strings/string_piece.h" 29 #include "base/strings/string_piece.h"
30 #include "base/synchronization/lock.h" 30 #include "base/synchronization/lock.h"
31 #include "base/threading/thread_local.h" 31 #include "base/threading/thread_local.h"
32 #include "base/values.h" 32 #include "base/values.h"
33 #include "crypto/ec_private_key.h" 33 #include "crypto/ec_private_key.h"
34 #include "crypto/openssl_util.h" 34 #include "crypto/openssl_util.h"
35 #include "crypto/scoped_openssl_types.h" 35 #include "crypto/scoped_openssl_types.h"
36 #include "net/base/ip_address_number.h" 36 #include "net/base/ip_address_number.h"
37 #include "net/base/net_errors.h" 37 #include "net/base/net_errors.h"
38 #include "net/cert/cert_policy_enforcer.h"
39 #include "net/cert/cert_verifier.h" 38 #include "net/cert/cert_verifier.h"
40 #include "net/cert/ct_ev_whitelist.h" 39 #include "net/cert/ct_ev_whitelist.h"
40 #include "net/cert/ct_policy_enforcer.h"
41 #include "net/cert/ct_verifier.h" 41 #include "net/cert/ct_verifier.h"
42 #include "net/cert/x509_certificate_net_log_param.h" 42 #include "net/cert/x509_certificate_net_log_param.h"
43 #include "net/cert/x509_util_openssl.h" 43 #include "net/cert/x509_util_openssl.h"
44 #include "net/http/transport_security_state.h" 44 #include "net/http/transport_security_state.h"
45 #include "net/ssl/scoped_openssl_types.h" 45 #include "net/ssl/scoped_openssl_types.h"
46 #include "net/ssl/ssl_cert_request_info.h" 46 #include "net/ssl/ssl_cert_request_info.h"
47 #include "net/ssl/ssl_client_session_cache_openssl.h" 47 #include "net/ssl/ssl_client_session_cache_openssl.h"
48 #include "net/ssl/ssl_connection_status_flags.h" 48 #include "net/ssl/ssl_connection_status_flags.h"
49 #include "net/ssl/ssl_failure_state.h" 49 #include "net/ssl/ssl_failure_state.h"
50 #include "net/ssl/ssl_info.h" 50 #include "net/ssl/ssl_info.h"
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 ssl_session_cache_shard_(context.ssl_session_cache_shard), 534 ssl_session_cache_shard_(context.ssl_session_cache_shard),
535 next_handshake_state_(STATE_NONE), 535 next_handshake_state_(STATE_NONE),
536 disconnected_(false), 536 disconnected_(false),
537 npn_status_(kNextProtoUnsupported), 537 npn_status_(kNextProtoUnsupported),
538 channel_id_sent_(false), 538 channel_id_sent_(false),
539 session_pending_(false), 539 session_pending_(false),
540 certificate_verified_(false), 540 certificate_verified_(false),
541 ssl_failure_state_(SSL_FAILURE_NONE), 541 ssl_failure_state_(SSL_FAILURE_NONE),
542 signature_result_(kNoPendingResult), 542 signature_result_(kNoPendingResult),
543 transport_security_state_(context.transport_security_state), 543 transport_security_state_(context.transport_security_state),
544 policy_enforcer_(context.cert_policy_enforcer), 544 policy_enforcer_(context.ct_policy_enforcer),
545 net_log_(transport_->socket()->NetLog()), 545 net_log_(transport_->socket()->NetLog()),
546 weak_factory_(this) { 546 weak_factory_(this) {
547 DCHECK(cert_verifier_); 547 DCHECK(cert_verifier_);
548 } 548 }
549 549
550 SSLClientSocketOpenSSL::~SSLClientSocketOpenSSL() { 550 SSLClientSocketOpenSSL::~SSLClientSocketOpenSSL() {
551 Disconnect(); 551 Disconnect();
552 } 552 }
553 553
554 #if !defined(OS_NACL) 554 #if !defined(OS_NACL)
(...skipping 1755 matching lines...) Expand 10 before | Expand all | Expand 10 after
2310 tb_was_negotiated_ = true; 2310 tb_was_negotiated_ = true;
2311 return 1; 2311 return 1;
2312 } 2312 }
2313 } 2313 }
2314 2314
2315 *out_alert_value = SSL_AD_ILLEGAL_PARAMETER; 2315 *out_alert_value = SSL_AD_ILLEGAL_PARAMETER;
2316 return 0; 2316 return 0;
2317 } 2317 }
2318 2318
2319 } // namespace net 2319 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_openssl.h ('k') | net/socket/ssl_client_socket_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698