Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: net/socket/ssl_client_socket_win.cc

Issue 345018: Document that the handshake_failure alert message is also... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/socket/ssl_client_socket_win.h" 5 #include "net/socket/ssl_client_socket_win.h"
6 6
7 #include <schnlsp.h> 7 #include <schnlsp.h>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/lock.h" 10 #include "base/lock.h"
(...skipping 30 matching lines...) Expand all
41 return ERR_CERT_DATE_INVALID; 41 return ERR_CERT_DATE_INVALID;
42 case CRYPT_E_NO_REVOCATION_CHECK: 42 case CRYPT_E_NO_REVOCATION_CHECK:
43 return ERR_CERT_NO_REVOCATION_MECHANISM; 43 return ERR_CERT_NO_REVOCATION_MECHANISM;
44 case CRYPT_E_REVOCATION_OFFLINE: 44 case CRYPT_E_REVOCATION_OFFLINE:
45 return ERR_CERT_UNABLE_TO_CHECK_REVOCATION; 45 return ERR_CERT_UNABLE_TO_CHECK_REVOCATION;
46 case CRYPT_E_REVOKED: // Schannel and CryptoAPI 46 case CRYPT_E_REVOKED: // Schannel and CryptoAPI
47 return ERR_CERT_REVOKED; 47 return ERR_CERT_REVOKED;
48 case SEC_E_CERT_UNKNOWN: 48 case SEC_E_CERT_UNKNOWN:
49 case CERT_E_ROLE: 49 case CERT_E_ROLE:
50 return ERR_CERT_INVALID; 50 return ERR_CERT_INVALID;
51 // We received an unexpected_message or illegal_parameter alert message 51 // We received one of the following alert messages from the server:
52 // from the server. 52 // handshake_failure
53 // illegal_parameter
54 // unexpected_message
53 case SEC_E_ILLEGAL_MESSAGE: 55 case SEC_E_ILLEGAL_MESSAGE:
54 return ERR_SSL_PROTOCOL_ERROR; 56 return ERR_SSL_PROTOCOL_ERROR;
55 case SEC_E_ALGORITHM_MISMATCH: 57 case SEC_E_ALGORITHM_MISMATCH:
56 return ERR_SSL_VERSION_OR_CIPHER_MISMATCH; 58 return ERR_SSL_VERSION_OR_CIPHER_MISMATCH;
57 case SEC_E_INVALID_HANDLE: 59 case SEC_E_INVALID_HANDLE:
58 return ERR_UNEXPECTED; 60 return ERR_UNEXPECTED;
59 case SEC_E_OK: 61 case SEC_E_OK:
60 return OK; 62 return OK;
61 default: 63 default:
62 LOG(WARNING) << "Unknown error " << err << " mapped to net::ERR_FAILED"; 64 LOG(WARNING) << "Unknown error " << err << " mapped to net::ERR_FAILED";
(...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 UpdateConnectionTypeHistograms(CONNECTION_SSL_MD2_CA); 1293 UpdateConnectionTypeHistograms(CONNECTION_SSL_MD2_CA);
1292 } 1294 }
1293 1295
1294 void SSLClientSocketWin::FreeSendBuffer() { 1296 void SSLClientSocketWin::FreeSendBuffer() {
1295 SECURITY_STATUS status = FreeContextBuffer(send_buffer_.pvBuffer); 1297 SECURITY_STATUS status = FreeContextBuffer(send_buffer_.pvBuffer);
1296 DCHECK(status == SEC_E_OK); 1298 DCHECK(status == SEC_E_OK);
1297 memset(&send_buffer_, 0, sizeof(send_buffer_)); 1299 memset(&send_buffer_, 0, sizeof(send_buffer_));
1298 } 1300 }
1299 1301
1300 } // namespace net 1302 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698