| 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 #ifndef NET_BASE_CERT_TEST_UTIL_H_ | 5 #ifndef NET_BASE_CERT_TEST_UTIL_H_ |
| 6 #define NET_BASE_CERT_TEST_UTIL_H_ | 6 #define NET_BASE_CERT_TEST_UTIL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| 11 class FilePath; | 11 class FilePath; |
| 12 | 12 |
| 13 namespace net { | 13 namespace net { |
| 14 | 14 |
| 15 class X509Certificate; | 15 class X509Certificate; |
| 16 | 16 |
| 17 #if defined(USE_NSS) || defined(OS_MACOSX) | 17 #if defined(USE_NSS) || defined(OS_MACOSX) || defined(USE_OPENSSL) |
| 18 // Loads and trusts a root CA certificate (stored in a file) temporarily. | 18 // Loads and trusts a root CA certificate (stored in a file) temporarily. |
| 19 // TODO(wtc): Implement this function on Windows (http://crbug.com/8470). | 19 // TODO(wtc): Implement this function on Windows (http://crbug.com/8470). |
| 20 X509Certificate* LoadTemporaryRootCert(const FilePath& filename); | 20 X509Certificate* LoadTemporaryRootCert(const FilePath& filename); |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 } // namespace net | 23 } // namespace net |
| 24 | 24 |
| 25 #endif // NET_BASE_CERT_TEST_UTIL_H_ | 25 #endif // NET_BASE_CERT_TEST_UTIL_H_ |
| OLD | NEW |