chromium/components/enterprise/client_certificates/core/ssl_key_converter.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/enterprise/client_certificates/core/ssl_key_converter.h"

#include "base/check.h"
#include "build/build_config.h"
#include "net/ssl/openssl_private_key.h"
#include "net/ssl/ssl_private_key.h"
#include "third_party/boringssl/src/include/openssl/evp.h"

#if BUILDFLAG(IS_WIN)
#include "net/ssl/ssl_platform_key_win.h"
#elif BUILDFLAG(IS_MAC)
#include "net/ssl/ssl_platform_key_mac.h"
#endif  // BUILDFLAG(IS_WIN)

namespace client_certificates {

namespace {
std::unique_ptr<SSLKeyConverter> (*g_mock_converter)() =;
}  // namespace

class SSLKeyConverterImpl : public SSLKeyConverter {};

SSLKeyConverter::~SSLKeyConverter() = default;

std::unique_ptr<SSLKeyConverter> SSLKeyConverter::Get() {}

SSLKeyConverterImpl::SSLKeyConverterImpl() = default;
SSLKeyConverterImpl::~SSLKeyConverterImpl() = default;

scoped_refptr<net::SSLPrivateKey>
SSLKeyConverterImpl::ConvertUnexportableKeySlowly(
    const crypto::UnexportableSigningKey& key) {}

scoped_refptr<net::SSLPrivateKey> SSLKeyConverterImpl::ConvertECKey(
    const crypto::ECPrivateKey& key) {}

namespace internal {

void SetConverterForTesting(std::unique_ptr<SSLKeyConverter> (*func)()) {}

}  // namespace internal
}  // namespace client_certificates