#include "net/ssl/client_cert_identity.h"
#include <utility>
#include "base/functional/bind.h"
#include "net/cert/x509_util.h"
#include "net/ssl/ssl_private_key.h"
namespace net {
namespace {
void IdentityOwningPrivateKeyCallback(
std::unique_ptr<ClientCertIdentity> identity,
base::OnceCallback<void(scoped_refptr<SSLPrivateKey>)> private_key_callback,
scoped_refptr<SSLPrivateKey> private_key) { … }
}
ClientCertIdentity::ClientCertIdentity(scoped_refptr<net::X509Certificate> cert)
: … { … }
ClientCertIdentity::~ClientCertIdentity() = default;
void ClientCertIdentity::SelfOwningAcquirePrivateKey(
std::unique_ptr<ClientCertIdentity> self,
base::OnceCallback<void(scoped_refptr<SSLPrivateKey>)>
private_key_callback) { … }
void ClientCertIdentity::SetIntermediates(
std::vector<bssl::UniquePtr<CRYPTO_BUFFER>> intermediates) { … }
ClientCertIdentitySorter::ClientCertIdentitySorter()
: … { … }
bool ClientCertIdentitySorter::operator()(
const std::unique_ptr<ClientCertIdentity>& a_identity,
const std::unique_ptr<ClientCertIdentity>& b_identity) const { … }
}