| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/nss_ssl_util.h" | 5 #include "net/socket/nss_ssl_util.h" |
| 6 | 6 |
| 7 #include <nss.h> | 7 #include <nss.h> |
| 8 #include <secerr.h> | 8 #include <secerr.h> |
| 9 #include <ssl.h> | 9 #include <ssl.h> |
| 10 #include <sslerr.h> | 10 #include <sslerr.h> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #if defined(OS_WIN) | 26 #if defined(OS_WIN) |
| 27 #include "base/win/windows_version.h" | 27 #include "base/win/windows_version.h" |
| 28 #endif | 28 #endif |
| 29 | 29 |
| 30 namespace net { | 30 namespace net { |
| 31 | 31 |
| 32 class NSSSSLInitSingleton { | 32 class NSSSSLInitSingleton { |
| 33 public: | 33 public: |
| 34 NSSSSLInitSingleton() { | 34 NSSSSLInitSingleton() { |
| 35 LOG(ERROR) << "HIIIIIIIIIIIIIIIIIIIIIIIIIII"; |
| 35 crypto::EnsureNSSInit(); | 36 crypto::EnsureNSSInit(); |
| 36 | 37 |
| 37 NSS_SetDomesticPolicy(); | 38 NSS_SetDomesticPolicy(); |
| 38 | 39 |
| 39 const PRUint16* const ssl_ciphers = SSL_GetImplementedCiphers(); | 40 const PRUint16* const ssl_ciphers = SSL_GetImplementedCiphers(); |
| 40 const PRUint16 num_ciphers = SSL_GetNumImplementedCiphers(); | 41 const PRUint16 num_ciphers = SSL_GetNumImplementedCiphers(); |
| 41 | 42 |
| 42 // Disable ECDSA cipher suites on platforms that do not support ECDSA | 43 // Disable ECDSA cipher suites on platforms that do not support ECDSA |
| 43 // signed certificates, as servers may use the presence of such | 44 // signed certificates, as servers may use the presence of such |
| 44 // ciphersuites as a hint to send an ECDSA certificate. | 45 // ciphersuites as a hint to send an ECDSA certificate. |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 const char* param) { | 272 const char* param) { |
| 272 DCHECK(function); | 273 DCHECK(function); |
| 273 DCHECK(param); | 274 DCHECK(param); |
| 274 net_log.AddEvent( | 275 net_log.AddEvent( |
| 275 NetLog::TYPE_SSL_NSS_ERROR, | 276 NetLog::TYPE_SSL_NSS_ERROR, |
| 276 base::Bind(&NetLogSSLFailedNSSFunctionCallback, | 277 base::Bind(&NetLogSSLFailedNSSFunctionCallback, |
| 277 function, param, PR_GetError())); | 278 function, param, PR_GetError())); |
| 278 } | 279 } |
| 279 | 280 |
| 280 } // namespace net | 281 } // namespace net |
| OLD | NEW |