summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorwtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-09 20:09:34 +0000
committerwtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-09 20:09:34 +0000
commitb4d9a7432d7b9b272a38969cfe44dca3e8b7f28a (patch)
tree75add757352a3586459f248ef571cef23f224d0b /net
parent2c10721c6927a7218078d9902c3238b81692ebd6 (diff)
downloadchromium_src-b4d9a7432d7b9b272a38969cfe44dca3e8b7f28a.zip
chromium_src-b4d9a7432d7b9b272a38969cfe44dca3e8b7f28a.tar.gz
chromium_src-b4d9a7432d7b9b272a38969cfe44dca3e8b7f28a.tar.bz2
WinHttpSendRequest fails with SEC_E_ILLEGAL_MESSAGE when
it receives an unexpected_message alert message from the server. We should map SEC_E_ILLEGAL_MESSAGE to net::ERR_SSL_PROTOCOL_ERROR so that our TLS-intolerant server handling code will kick in. R=eroman BUG=1891 Review URL: http://codereview.chromium.org/1669 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1919 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/http/http_transaction_winhttp.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/http/http_transaction_winhttp.cc b/net/http/http_transaction_winhttp.cc
index 46da038..7c703d0 100644
--- a/net/http/http_transaction_winhttp.cc
+++ b/net/http/http_transaction_winhttp.cc
@@ -56,6 +56,7 @@ static int TranslateOSError(DWORD error) {
return ERR_ABORTED;
case ERROR_WINHTTP_SECURE_CHANNEL_ERROR:
case ERROR_WINHTTP_SECURE_FAILURE:
+ case SEC_E_ILLEGAL_MESSAGE:
return ERR_SSL_PROTOCOL_ERROR;
case ERROR_WINHTTP_CLIENT_AUTH_CERT_NEEDED:
return ERR_SSL_CLIENT_AUTH_CERT_NEEDED;