summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authorwtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-14 20:33:25 +0000
committerwtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-14 20:33:25 +0000
commit4628a2a1293b6661630162edfce543998c69f105 (patch)
tree40b2ffaf5d0f56c27b56aa44391bd0271bcb8302 /net/http
parent0297f4f98eedef215784483827deb2356f44e7ca (diff)
downloadchromium_src-4628a2a1293b6661630162edfce543998c69f105.zip
chromium_src-4628a2a1293b6661630162edfce543998c69f105.tar.gz
chromium_src-4628a2a1293b6661630162edfce543998c69f105.tar.bz2
First cut at implementing SSLClientSocket using Schannel.
Not implemented: - Handling certificate errors - Handling session renegotiation - Sending the close_notify alert - Miscellaneous TODOs and DCHECKs in the code. R=darin git-svn-id: svn://svn.chromium.org/chrome/trunk/src@884 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_network_transaction.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index 56ec449..69af354 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -33,6 +33,7 @@
#include "net/base/client_socket_factory.h"
#include "net/base/host_resolver.h"
#include "net/base/load_flags.h"
+#include "net/base/ssl_client_socket.h"
#include "net/base/upload_data_stream.h"
#include "net/http/http_chunked_decoder.h"
#include "net/http/http_network_session.h"
@@ -123,7 +124,7 @@ int HttpNetworkTransaction::Read(char* buf, int buf_len,
}
const HttpResponseInfo* HttpNetworkTransaction::GetResponseInfo() const {
- return response_.headers ? &response_ : NULL;
+ return (response_.headers || response_.ssl_info.cert) ? &response_ : NULL;
}
LoadState HttpNetworkTransaction::GetLoadState() const {
@@ -663,6 +664,12 @@ int HttpNetworkTransaction::DidReadResponseHeaders() {
}
}
+ if (using_ssl_) {
+ SSLClientSocket* ssl_socket =
+ reinterpret_cast<SSLClientSocket*>(connection_.socket());
+ ssl_socket->GetSSLInfo(&response_.ssl_info);
+ }
+
return OK;
}