| OLD | NEW |
| 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 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1323 BOOL ok = CertSetCertificateContextProperty( | 1323 BOOL ok = CertSetCertificateContextProperty( |
| 1324 server_cert_->os_cert_handle(), | 1324 server_cert_->os_cert_handle(), |
| 1325 CERT_OCSP_RESPONSE_PROP_ID, | 1325 CERT_OCSP_RESPONSE_PROP_ID, |
| 1326 CERT_SET_PROPERTY_IGNORE_PERSIST_ERROR_FLAG, | 1326 CERT_SET_PROPERTY_IGNORE_PERSIST_ERROR_FLAG, |
| 1327 &ocsp_response_blob); | 1327 &ocsp_response_blob); |
| 1328 if (!ok) { | 1328 if (!ok) { |
| 1329 VLOG(1) << "Failed to set OCSP response property: " | 1329 VLOG(1) << "Failed to set OCSP response property: " |
| 1330 << GetLastError(); | 1330 << GetLastError(); |
| 1331 } | 1331 } |
| 1332 #else | 1332 #else |
| 1333 // TODO(davidben): Support OCSP stapling when NSS is the system |
| 1334 // certificate verifier. https://crbug.com/462040. |
| 1333 NOTREACHED(); | 1335 NOTREACHED(); |
| 1334 #endif | 1336 #endif |
| 1335 } | 1337 } |
| 1336 } | 1338 } |
| 1337 } | 1339 } |
| 1338 | 1340 |
| 1339 void SSLClientSocketOpenSSL::VerifyCT() { | 1341 void SSLClientSocketOpenSSL::VerifyCT() { |
| 1340 if (!cert_transparency_verifier_) | 1342 if (!cert_transparency_verifier_) |
| 1341 return; | 1343 return; |
| 1342 | 1344 |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2043 ct::SCT_STATUS_LOG_UNKNOWN)); | 2045 ct::SCT_STATUS_LOG_UNKNOWN)); |
| 2044 } | 2046 } |
| 2045 } | 2047 } |
| 2046 | 2048 |
| 2047 scoped_refptr<X509Certificate> | 2049 scoped_refptr<X509Certificate> |
| 2048 SSLClientSocketOpenSSL::GetUnverifiedServerCertificateChain() const { | 2050 SSLClientSocketOpenSSL::GetUnverifiedServerCertificateChain() const { |
| 2049 return server_cert_; | 2051 return server_cert_; |
| 2050 } | 2052 } |
| 2051 | 2053 |
| 2052 } // namespace net | 2054 } // namespace net |
| OLD | NEW |