| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <string> | 5 #include <string> |
| 6 #include <algorithm> | 6 #include <algorithm> |
| 7 | 7 |
| 8 #include "net/socket/ssl_test_util.h" | 8 #include "net/socket/ssl_test_util.h" |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 | 11 |
| 12 #if defined(OS_WIN) | 12 #if defined(OS_WIN) |
| 13 #include <windows.h> | 13 #include <windows.h> |
| 14 #include <wincrypt.h> | 14 #include <wincrypt.h> |
| 15 #elif defined(OS_LINUX) | 15 #elif defined(OS_LINUX) |
| 16 #include <nspr.h> | 16 #include <nspr.h> |
| 17 #include <nss.h> | 17 #include <nss.h> |
| 18 #include <secerr.h> | 18 #include <secerr.h> |
| 19 // Work around https://bugzilla.mozilla.org/show_bug.cgi?id=455424 | |
| 20 // until NSS 3.12.2 comes out and we update to it. | |
| 21 #define Lock FOO_NSS_Lock | |
| 22 #include <ssl.h> | 19 #include <ssl.h> |
| 23 #include <sslerr.h> | 20 #include <sslerr.h> |
| 24 #include <pk11pub.h> | 21 #include <pk11pub.h> |
| 25 #undef Lock | |
| 26 #include "base/nss_init.h" | 22 #include "base/nss_init.h" |
| 27 #elif defined(OS_MACOSX) | 23 #elif defined(OS_MACOSX) |
| 28 #include <Security/Security.h> | 24 #include <Security/Security.h> |
| 29 #include "base/scoped_cftyperef.h" | 25 #include "base/scoped_cftyperef.h" |
| 30 #include "net/base/x509_certificate.h" | 26 #include "net/base/x509_certificate.h" |
| 31 #endif | 27 #endif |
| 32 | 28 |
| 33 #include "base/file_util.h" | 29 #include "base/file_util.h" |
| 34 #include "base/logging.h" | 30 #include "base/logging.h" |
| 35 #include "base/path_service.h" | 31 #include "base/path_service.h" |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 "certificate to your trusted roots for this test to work. " | 428 "certificate to your trusted roots for this test to work. " |
| 433 "For more info visit:\n" | 429 "For more info visit:\n" |
| 434 "http://dev.chromium.org/developers/testing\n"; | 430 "http://dev.chromium.org/developers/testing\n"; |
| 435 return false; | 431 return false; |
| 436 } | 432 } |
| 437 #endif | 433 #endif |
| 438 return true; | 434 return true; |
| 439 } | 435 } |
| 440 | 436 |
| 441 } // namespace net | 437 } // namespace net |
| OLD | NEW |