Index: net/socket/ssl_client_socket_openssl.cc |
diff --git a/net/socket/ssl_client_socket_openssl.cc b/net/socket/ssl_client_socket_openssl.cc |
index 5d81c559e125af7f62ba14c0a7a9b22c1926ad63..f2c9cbc664cc4a856916a2b8f2d871950e526894 100644 |
--- a/net/socket/ssl_client_socket_openssl.cc |
+++ b/net/socket/ssl_client_socket_openssl.cc |
@@ -1222,22 +1222,19 @@ void SSLClientSocketOpenSSL::VerifyCT() { |
server_cert_verify_result_.verified_cert.get(), ocsp_response, sct_list, |
&ct_verify_result_, net_log_); |
- if (!policy_enforcer_) { |
- server_cert_verify_result_.cert_status &= ~CERT_STATUS_IS_EV; |
- } else { |
- if (server_cert_verify_result_.cert_status & CERT_STATUS_IS_EV) { |
- scoped_refptr<ct::EVCertsWhitelist> ev_whitelist = |
- SSLConfigService::GetEVCertsWhitelist(); |
- if (!policy_enforcer_->DoesConformToCTEVPolicy( |
- server_cert_verify_result_.verified_cert.get(), |
- ev_whitelist.get(), ct_verify_result_, net_log_)) { |
- // TODO(eranm): Log via the BoundNetLog, see crbug.com/437766 |
- VLOG(1) << "EV certificate for " |
- << server_cert_verify_result_.verified_cert->subject() |
- .GetDisplayName() |
- << " does not conform to CT policy, removing EV status."; |
- server_cert_verify_result_.cert_status &= ~CERT_STATUS_IS_EV; |
- } |
+ if (policy_enforcer_ && |
+ (server_cert_verify_result_.cert_status & CERT_STATUS_IS_EV)) { |
+ scoped_refptr<ct::EVCertsWhitelist> ev_whitelist = |
+ SSLConfigService::GetEVCertsWhitelist(); |
+ if (!policy_enforcer_->DoesConformToCTEVPolicy( |
+ server_cert_verify_result_.verified_cert.get(), ev_whitelist.get(), |
+ ct_verify_result_, net_log_)) { |
+ // TODO(eranm): Log via the BoundNetLog, see crbug.com/437766 |
+ VLOG(1) << "EV certificate for " |
+ << server_cert_verify_result_.verified_cert->subject() |
+ .GetDisplayName() |
+ << " does not conform to CT policy, removing EV status."; |
+ server_cert_verify_result_.cert_status &= ~CERT_STATUS_IS_EV; |
} |
} |
} |