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 c3af8b84d83e62340efb535f64a5e2d93da2ac86..ade7ffd9ca133197a8feafafa2f530563e040183 100644 |
--- a/net/socket/ssl_client_socket_openssl.cc |
+++ b/net/socket/ssl_client_socket_openssl.cc |
@@ -55,6 +55,10 @@ |
#include "net/ssl/ssl_platform_key.h" |
#endif |
+#if defined(USE_NSS_CERTS) || defined(OS_IOS) |
+#include "net/cert_net/nss_ocsp.h" |
+#endif |
+ |
namespace net { |
namespace { |
@@ -791,6 +795,14 @@ int SSLClientSocketOpenSSL::Init() { |
DCHECK(!ssl_); |
DCHECK(!transport_bio_); |
+#if defined(USE_NSS_CERTS) || defined(OS_IOS) |
+ if (ssl_config_.cert_io_enabled) { |
+ // TODO(davidben): Move this out of SSLClientSocket. See |
+ // https://crbug.com/539520. |
+ EnsureNSSHttpIOInit(); |
+ } |
+#endif |
+ |
SSLContext* context = SSLContext::GetInstance(); |
crypto::OpenSSLErrStackTracer err_tracer(FROM_HERE); |