From b4d9a7432d7b9b272a38969cfe44dca3e8b7f28a Mon Sep 17 00:00:00 2001 From: "wtc@google.com" Date: Tue, 9 Sep 2008 20:09:34 +0000 Subject: 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 --- net/http/http_transaction_winhttp.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'net') 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; -- cgit v1.1