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

Side by Side Diff: net/socket/ssl_client_socket_nss.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_nss.h ('k') | net/socket/ssl_client_socket_openssl.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 // This file includes code SSLClientSocketNSS::DoVerifyCertComplete() derived 5 // This file includes code SSLClientSocketNSS::DoVerifyCertComplete() derived
6 // from AuthCertificateCallback() in 6 // from AuthCertificateCallback() in
7 // mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp. 7 // mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp.
8 8
9 /* ***** BEGIN LICENSE BLOCK ***** 9 /* ***** BEGIN LICENSE BLOCK *****
10 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 10 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 #include "crypto/ec_private_key.h" 83 #include "crypto/ec_private_key.h"
84 #include "crypto/nss_util.h" 84 #include "crypto/nss_util.h"
85 #include "crypto/nss_util_internal.h" 85 #include "crypto/nss_util_internal.h"
86 #include "crypto/rsa_private_key.h" 86 #include "crypto/rsa_private_key.h"
87 #include "crypto/scoped_nss_types.h" 87 #include "crypto/scoped_nss_types.h"
88 #include "net/base/address_list.h" 88 #include "net/base/address_list.h"
89 #include "net/base/io_buffer.h" 89 #include "net/base/io_buffer.h"
90 #include "net/base/net_errors.h" 90 #include "net/base/net_errors.h"
91 #include "net/base/net_util.h" 91 #include "net/base/net_util.h"
92 #include "net/cert/asn1_util.h" 92 #include "net/cert/asn1_util.h"
93 #include "net/cert/cert_policy_enforcer.h"
94 #include "net/cert/cert_status_flags.h" 93 #include "net/cert/cert_status_flags.h"
95 #include "net/cert/cert_verifier.h" 94 #include "net/cert/cert_verifier.h"
96 #include "net/cert/ct_ev_whitelist.h" 95 #include "net/cert/ct_ev_whitelist.h"
96 #include "net/cert/ct_policy_enforcer.h"
97 #include "net/cert/ct_verifier.h" 97 #include "net/cert/ct_verifier.h"
98 #include "net/cert/ct_verify_result.h" 98 #include "net/cert/ct_verify_result.h"
99 #include "net/cert/scoped_nss_types.h" 99 #include "net/cert/scoped_nss_types.h"
100 #include "net/cert/sct_status_flags.h" 100 #include "net/cert/sct_status_flags.h"
101 #include "net/cert/x509_certificate_net_log_param.h" 101 #include "net/cert/x509_certificate_net_log_param.h"
102 #include "net/cert/x509_util.h" 102 #include "net/cert/x509_util.h"
103 #include "net/cert_net/nss_ocsp.h" 103 #include "net/cert_net/nss_ocsp.h"
104 #include "net/dns/dns_util.h" 104 #include "net/dns/dns_util.h"
105 #include "net/http/transport_security_state.h" 105 #include "net/http/transport_security_state.h"
106 #include "net/log/net_log.h" 106 #include "net/log/net_log.h"
(...skipping 2258 matching lines...) Expand 10 before | Expand all | Expand 10 after
2365 cert_verifier_(context.cert_verifier), 2365 cert_verifier_(context.cert_verifier),
2366 cert_transparency_verifier_(context.cert_transparency_verifier), 2366 cert_transparency_verifier_(context.cert_transparency_verifier),
2367 channel_id_service_(context.channel_id_service), 2367 channel_id_service_(context.channel_id_service),
2368 ssl_session_cache_shard_(context.ssl_session_cache_shard), 2368 ssl_session_cache_shard_(context.ssl_session_cache_shard),
2369 completed_handshake_(false), 2369 completed_handshake_(false),
2370 next_handshake_state_(STATE_NONE), 2370 next_handshake_state_(STATE_NONE),
2371 disconnected_(false), 2371 disconnected_(false),
2372 nss_fd_(NULL), 2372 nss_fd_(NULL),
2373 net_log_(transport_->socket()->NetLog()), 2373 net_log_(transport_->socket()->NetLog()),
2374 transport_security_state_(context.transport_security_state), 2374 transport_security_state_(context.transport_security_state),
2375 policy_enforcer_(context.cert_policy_enforcer), 2375 policy_enforcer_(context.ct_policy_enforcer),
2376 valid_thread_id_(base::kInvalidThreadId) { 2376 valid_thread_id_(base::kInvalidThreadId) {
2377 DCHECK(cert_verifier_); 2377 DCHECK(cert_verifier_);
2378 2378
2379 EnterFunction(""); 2379 EnterFunction("");
2380 InitCore(); 2380 InitCore();
2381 LeaveFunction(""); 2381 LeaveFunction("");
2382 } 2382 }
2383 2383
2384 SSLClientSocketNSS::~SSLClientSocketNSS() { 2384 SSLClientSocketNSS::~SSLClientSocketNSS() {
2385 EnterFunction(""); 2385 EnterFunction("");
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
3178 return channel_id_service_; 3178 return channel_id_service_;
3179 } 3179 }
3180 3180
3181 SSLFailureState SSLClientSocketNSS::GetSSLFailureState() const { 3181 SSLFailureState SSLClientSocketNSS::GetSSLFailureState() const {
3182 if (completed_handshake_) 3182 if (completed_handshake_)
3183 return SSL_FAILURE_NONE; 3183 return SSL_FAILURE_NONE;
3184 return SSL_FAILURE_UNKNOWN; 3184 return SSL_FAILURE_UNKNOWN;
3185 } 3185 }
3186 3186
3187 } // namespace net 3187 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_nss.h ('k') | net/socket/ssl_client_socket_openssl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698