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 782333002: Certificate Transparency: Adding finch and NetLog logging for EV certs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing review comments Created 6 years 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') | no next file » | 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 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1264 &ct_verify_result_, net_log_); 1264 &ct_verify_result_, net_log_);
1265 1265
1266 if (!policy_enforcer_) { 1266 if (!policy_enforcer_) {
1267 server_cert_verify_result_.cert_status &= ~CERT_STATUS_IS_EV; 1267 server_cert_verify_result_.cert_status &= ~CERT_STATUS_IS_EV;
1268 } else { 1268 } else {
1269 if (server_cert_verify_result_.cert_status & CERT_STATUS_IS_EV) { 1269 if (server_cert_verify_result_.cert_status & CERT_STATUS_IS_EV) {
1270 scoped_refptr<ct::EVCertsWhitelist> ev_whitelist = 1270 scoped_refptr<ct::EVCertsWhitelist> ev_whitelist =
1271 SSLConfigService::GetEVCertsWhitelist(); 1271 SSLConfigService::GetEVCertsWhitelist();
1272 if (!policy_enforcer_->DoesConformToCTEVPolicy( 1272 if (!policy_enforcer_->DoesConformToCTEVPolicy(
1273 server_cert_verify_result_.verified_cert.get(), 1273 server_cert_verify_result_.verified_cert.get(),
1274 ev_whitelist.get(), ct_verify_result_)) { 1274 ev_whitelist.get(), ct_verify_result_, net_log_)) {
1275 // TODO(eranm): Log via the BoundNetLog, see crbug.com/437766 1275 // TODO(eranm): Log via the BoundNetLog, see crbug.com/437766
1276 VLOG(1) << "EV certificate for " 1276 VLOG(1) << "EV certificate for "
1277 << server_cert_verify_result_.verified_cert->subject() 1277 << server_cert_verify_result_.verified_cert->subject()
1278 .GetDisplayName() 1278 .GetDisplayName()
1279 << " does not conform to CT policy, removing EV status."; 1279 << " does not conform to CT policy, removing EV status.";
1280 server_cert_verify_result_.cert_status &= ~CERT_STATUS_IS_EV; 1280 server_cert_verify_result_.cert_status &= ~CERT_STATUS_IS_EV;
1281 } 1281 }
1282 } 1282 }
1283 } 1283 }
1284 } 1284 }
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
1923 ct::SCT_STATUS_LOG_UNKNOWN)); 1923 ct::SCT_STATUS_LOG_UNKNOWN));
1924 } 1924 }
1925 } 1925 }
1926 1926
1927 scoped_refptr<X509Certificate> 1927 scoped_refptr<X509Certificate>
1928 SSLClientSocketOpenSSL::GetUnverifiedServerCertificateChain() const { 1928 SSLClientSocketOpenSSL::GetUnverifiedServerCertificateChain() const {
1929 return server_cert_; 1929 return server_cert_;
1930 } 1930 }
1931 1931
1932 } // namespace net 1932 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_nss.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698