[email protected] | c81d9dcc | 2010-03-17 00:51:44 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef NET_BASE_CERT_TEST_UTIL_H_ | ||||
6 | #define NET_BASE_CERT_TEST_UTIL_H_ | ||||
[email protected] | 32b76ef | 2010-07-26 23:08:24 | [diff] [blame] | 7 | #pragma once |
[email protected] | c81d9dcc | 2010-03-17 00:51:44 | [diff] [blame] | 8 | |
[email protected] | c81d9dcc | 2010-03-17 00:51:44 | [diff] [blame] | 9 | #include "build/build_config.h" |
10 | |||||
[email protected] | 864b136 | 2010-08-19 03:49:38 | [diff] [blame^] | 11 | class FilePath; |
12 | |||||
[email protected] | c81d9dcc | 2010-03-17 00:51:44 | [diff] [blame] | 13 | namespace net { |
14 | |||||
15 | class X509Certificate; | ||||
16 | |||||
17 | #if defined(USE_NSS) || defined(OS_MACOSX) | ||||
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). | ||||
20 | X509Certificate* LoadTemporaryRootCert(const FilePath& filename); | ||||
21 | #endif | ||||
22 | |||||
23 | } // namespace net | ||||
24 | |||||
25 | #endif // NET_BASE_CERT_TEST_UTIL_H_ |