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

Side by Side Diff: net/base/ssl_client_socket.cc

Issue 7242: The Schannel considers some cipher suites (e.g., the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 months 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/base/ssl_client_socket.h" 5 #include "net/base/ssl_client_socket.h"
6 6
7 #include <schnlsp.h> 7 #include <schnlsp.h>
8 8
9 #include "base/singleton.h" 9 #include "base/singleton.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 24 matching lines...) Expand all
35 case CRYPT_E_NO_REVOCATION_CHECK: 35 case CRYPT_E_NO_REVOCATION_CHECK:
36 return ERR_CERT_NO_REVOCATION_MECHANISM; 36 return ERR_CERT_NO_REVOCATION_MECHANISM;
37 case CRYPT_E_REVOKED: // Schannel and CryptoAPI 37 case CRYPT_E_REVOKED: // Schannel and CryptoAPI
38 return ERR_CERT_REVOKED; 38 return ERR_CERT_REVOKED;
39 case SEC_E_CERT_UNKNOWN: 39 case SEC_E_CERT_UNKNOWN:
40 return ERR_CERT_INVALID; 40 return ERR_CERT_INVALID;
41 // We received an unexpected_message or illegal_parameter alert message 41 // We received an unexpected_message or illegal_parameter alert message
42 // from the server. 42 // from the server.
43 case SEC_E_ILLEGAL_MESSAGE: 43 case SEC_E_ILLEGAL_MESSAGE:
44 return ERR_SSL_PROTOCOL_ERROR; 44 return ERR_SSL_PROTOCOL_ERROR;
45 case SEC_E_ALGORITHM_MISMATCH:
46 return ERR_SSL_VERSION_OR_CIPHER_MISMATCH;
45 case SEC_E_OK: 47 case SEC_E_OK:
46 return OK; 48 return OK;
47 default: 49 default:
48 LOG(WARNING) << "Unknown error " << err << " mapped to net::ERR_FAILED"; 50 LOG(WARNING) << "Unknown error " << err << " mapped to net::ERR_FAILED";
49 return ERR_FAILED; 51 return ERR_FAILED;
50 } 52 }
51 } 53 }
52 54
53 // Map a network error code to the equivalent certificate status flag. If 55 // Map a network error code to the equivalent certificate status flag. If
54 // the error code is not a certificate error, it is mapped to 0. 56 // the error code is not a certificate error, it is mapped to 0.
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 if (policy_status.dwError) 887 if (policy_status.dwError)
886 return MapSecurityError(policy_status.dwError); 888 return MapSecurityError(policy_status.dwError);
887 889
888 CertFreeCertificateChain(chain_context); 890 CertFreeCertificateChain(chain_context);
889 891
890 return OK; 892 return OK;
891 } 893 }
892 894
893 } // namespace net 895 } // namespace net
894 896
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698