OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This file includes code SSLClientSocketNSS::DoVerifyCertComplete() derived | 5 // This file includes code SSLClientSocketNSS::DoVerifyCertComplete() derived |
6 // from AuthCertificateCallback() in | 6 // from AuthCertificateCallback() in |
7 // mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp. | 7 // mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp. |
8 | 8 |
9 /* ***** BEGIN LICENSE BLOCK ***** | 9 /* ***** BEGIN LICENSE BLOCK ***** |
10 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 10 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
43 * the provisions above, a recipient may use your version of this file under | 43 * the provisions above, a recipient may use your version of this file under |
44 * the terms of any one of the MPL, the GPL or the LGPL. | 44 * the terms of any one of the MPL, the GPL or the LGPL. |
45 * | 45 * |
46 * ***** END LICENSE BLOCK ***** */ | 46 * ***** END LICENSE BLOCK ***** */ |
47 | 47 |
48 #include "net/socket/ssl_client_socket_nss.h" | 48 #include "net/socket/ssl_client_socket_nss.h" |
49 | 49 |
50 #if defined(USE_SYSTEM_SSL) | 50 #if defined(USE_SYSTEM_SSL) |
51 #include <dlfcn.h> | 51 #include <dlfcn.h> |
52 #endif | 52 #endif |
53 #if defined(OS_MACOSX) | 53 #if defined(OS_WIN) |
54 #include <windows.h> | |
55 #include <wincrypt.h> | |
56 #elif defined(OS_MACOSX) | |
57 // <Security/Security.h> must be included before NSS due to conflicting | |
58 // identifiers for cipher suites (Security.framework uses an enum, NSS uses a | |
wtc
2010/11/17 21:31:53
I believe the only conflicting identifier is
SSL_N
Ryan Sleevi
2010/11/18 08:21:36
No, it's all the cipher suites that follow the sta
| |
59 // #define) | |
54 #include <Security/Security.h> | 60 #include <Security/Security.h> |
55 #endif | 61 #endif |
62 | |
56 #include <certdb.h> | 63 #include <certdb.h> |
57 #include <hasht.h> | 64 #include <hasht.h> |
58 #include <keyhi.h> | 65 #include <keyhi.h> |
59 #include <nspr.h> | 66 #include <nspr.h> |
60 #include <nss.h> | 67 #include <nss.h> |
61 #include <pk11pub.h> | 68 #include <pk11pub.h> |
62 #include <secerr.h> | 69 #include <secerr.h> |
63 #include <sechash.h> | 70 #include <sechash.h> |
64 #include <ssl.h> | 71 #include <ssl.h> |
65 #include <sslerr.h> | 72 #include <sslerr.h> |
(...skipping 2533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2599 case SSL_CONNECTION_VERSION_TLS1_1: | 2606 case SSL_CONNECTION_VERSION_TLS1_1: |
2600 UpdateConnectionTypeHistograms(CONNECTION_SSL_TLS1_1); | 2607 UpdateConnectionTypeHistograms(CONNECTION_SSL_TLS1_1); |
2601 break; | 2608 break; |
2602 case SSL_CONNECTION_VERSION_TLS1_2: | 2609 case SSL_CONNECTION_VERSION_TLS1_2: |
2603 UpdateConnectionTypeHistograms(CONNECTION_SSL_TLS1_2); | 2610 UpdateConnectionTypeHistograms(CONNECTION_SSL_TLS1_2); |
2604 break; | 2611 break; |
2605 }; | 2612 }; |
2606 } | 2613 } |
2607 | 2614 |
2608 } // namespace net | 2615 } // namespace net |
OLD | NEW |