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

Unified Diff: net/socket/ssl_client_socket_openssl.cc

Issue 2944008: Refactor X509Certificate caching to cache the OS handle, rather than the X509Certificate (Closed)
Patch Set: Rebase to trunk after splitting out 4645001 Created 9 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 side-by-side diff with in-line comments
Download patch
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 e485c8ae9ab1a4d0db3401086aeffdc74cfc6113..5fe06fb00850b467a07ccb2f70faca20d149df8e 100644
--- a/net/socket/ssl_client_socket_openssl.cc
+++ b/net/socket/ssl_client_socket_openssl.cc
@@ -868,8 +868,8 @@ X509Certificate* SSLClientSocketOpenSSL::UpdateServerCert() {
for (int i = 0; i < sk_X509_num(chain); ++i)
intermediates.push_back(sk_X509_value(chain, i));
}
- server_cert_ = X509Certificate::CreateFromHandle(
- cert.get(), X509Certificate::SOURCE_FROM_NETWORK, intermediates);
+ server_cert_ = X509Certificate::CreateFromHandle(cert.get(),
+ intermediates);
DCHECK(server_cert_);
return server_cert_;

Powered by Google App Engine
This is Rietveld 408576698