#include "net/ssl/client_cert_identity_test_util.h"
#include <memory>
#include <utility>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "net/ssl/openssl_private_key.h"
#include "net/ssl/ssl_private_key.h"
#include "net/ssl/test_ssl_private_key.h"
#include "net/test/cert_test_util.h"
#include "third_party/boringssl/src/include/openssl/bytestring.h"
#include "third_party/boringssl/src/include/openssl/evp.h"
namespace net {
FakeClientCertIdentity::FakeClientCertIdentity(
scoped_refptr<X509Certificate> cert,
scoped_refptr<SSLPrivateKey> key)
: … { … }
FakeClientCertIdentity::~FakeClientCertIdentity() = default;
std::unique_ptr<FakeClientCertIdentity>
FakeClientCertIdentity::CreateFromCertAndKeyFiles(
const base::FilePath& dir,
const std::string& cert_filename,
const std::string& key_filename) { … }
std::unique_ptr<FakeClientCertIdentity>
FakeClientCertIdentity::CreateFromCertAndFailSigning(
const base::FilePath& dir,
const std::string& cert_filename) { … }
std::unique_ptr<FakeClientCertIdentity> FakeClientCertIdentity::Copy() { … }
void FakeClientCertIdentity::AcquirePrivateKey(
base::OnceCallback<void(scoped_refptr<SSLPrivateKey>)>
private_key_callback) { … }
ClientCertIdentityList FakeClientCertIdentityListFromCertificateList(
const CertificateList& certs) { … }
}