net::X509Certificate::Equals -> net::X509Certificate::EqualsExcludingChain

This commit is contained in:
Jeremy Apthorp 2018-09-14 17:10:19 -07:00 committed by Aleksei Kuzmin
parent de581ca0b4
commit 280421393e

View file

@ -482,7 +482,7 @@ void OnClientCertificateSelected(
if (!certs.empty()) {
scoped_refptr<net::X509Certificate> cert(certs[0].get());
for (size_t i = 0; i < identities->size(); ++i) {
if (cert->Equals((*identities)[i]->certificate())) {
if (cert->EqualsExcludingChain((*identities)[i]->certificate())) {
net::ClientCertIdentity::SelfOwningAcquirePrivateKey(
std::move((*identities)[i]),
base::Bind(&GotPrivateKey, delegate, std::move(cert)));