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

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: Removed unnecessary bits Created 9 years, 5 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 3e25e2bb2b3877b8f208d33f5028c05451c58581..b54e439394b65c84cea869384ffee379b88dee39 100644
--- a/net/socket/ssl_client_socket_openssl.cc
+++ b/net/socket/ssl_client_socket_openssl.cc
@@ -869,8 +869,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);
wtc 2011/07/17 01:55:32 This may fit on the previous line.
DCHECK(server_cert_);
return server_cert_;

Powered by Google App Engine
This is Rietveld 408576698