Index: net/socket/ssl_client_socket_nss.cc |
diff --git a/net/socket/ssl_client_socket_nss.cc b/net/socket/ssl_client_socket_nss.cc |
index 6aa0e88fb9ea1ff5a87d4244ba9d95ee0934bf3c..bc13d2a0a6b37d0f42af46d9266a4aa39d61c0e5 100644 |
--- a/net/socket/ssl_client_socket_nss.cc |
+++ b/net/socket/ssl_client_socket_nss.cc |
@@ -356,6 +356,12 @@ int SSLClientSocketNSS::InitializeSSLOptions() { |
#error "You need to install NSS-3.12 or later to build chromium" |
#endif |
+#ifdef SSL_ENABLE_DEFLATE |
+ rv = SSL_OptionSet(nss_fd_, SSL_ENABLE_DEFLATE, PR_TRUE); |
+ if (rv != SECSuccess) |
+ LOG(INFO) << "SSL_ENABLE_DEFLATE failed. Old system nss?"; |
+#endif |
+ |
rv = SSL_OptionSet(nss_fd_, SSL_HANDSHAKE_AS_CLIENT, PR_TRUE); |
if (rv != SECSuccess) |
return ERR_UNEXPECTED; |