summaryrefslogtreecommitdiffstats
path: root/net/socket
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 02:14:35 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 02:14:35 +0000
commit20aa3e526e7a8717a6ea1033580b5bc5d47275ab (patch)
treed3d040cb6f4f4725145a370bdd3fa6f5144d1597 /net/socket
parenta5eb0bb484ccb3d9ab55ddc85373333bfe31f734 (diff)
downloadchromium_src-20aa3e526e7a8717a6ea1033580b5bc5d47275ab.zip
chromium_src-20aa3e526e7a8717a6ea1033580b5bc5d47275ab.tar.gz
chromium_src-20aa3e526e7a8717a6ea1033580b5bc5d47275ab.tar.bz2
Document that the handshake_failure alert message is also
mapped to SEC_E_ILLEGAL_MESSAGE. R=willchan BUG=19255 TEST=none Review URL: http://codereview.chromium.org/345018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30419 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket')
-rw-r--r--net/socket/ssl_client_socket_win.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/socket/ssl_client_socket_win.cc b/net/socket/ssl_client_socket_win.cc
index c0761b2..03b8bfe 100644
--- a/net/socket/ssl_client_socket_win.cc
+++ b/net/socket/ssl_client_socket_win.cc
@@ -48,8 +48,10 @@ static int MapSecurityError(SECURITY_STATUS err) {
case SEC_E_CERT_UNKNOWN:
case CERT_E_ROLE:
return ERR_CERT_INVALID;
- // We received an unexpected_message or illegal_parameter alert message
- // from the server.
+ // We received one of the following alert messages from the server:
+ // handshake_failure
+ // illegal_parameter
+ // unexpected_message
case SEC_E_ILLEGAL_MESSAGE:
return ERR_SSL_PROTOCOL_ERROR;
case SEC_E_ALGORITHM_MISMATCH: