[go: nahoru, domu]

blob: 8709156d0f49cb8bc6c264603ff11deb61543bfd [file] [log] [blame]
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_BASE_CERT_TEST_UTIL_H_
#define NET_BASE_CERT_TEST_UTIL_H_
#pragma once
#include "build/build_config.h"
class FilePath;
namespace net {
class X509Certificate;
#if defined(USE_NSS) || defined(OS_MACOSX) || defined(USE_OPENSSL)
// Loads and trusts a root CA certificate (stored in a file) temporarily.
// TODO(wtc): Implement this function on Windows (http://crbug.com/8470).
X509Certificate* LoadTemporaryRootCert(const FilePath& filename);
#endif
} // namespace net
#endif // NET_BASE_CERT_TEST_UTIL_H_