summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/base/x509_certificate.h2
-rw-r--r--net/http/http_network_transaction.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/base/x509_certificate.h b/net/base/x509_certificate.h
index b50a406..5956826 100644
--- a/net/base/x509_certificate.h
+++ b/net/base/x509_certificate.h
@@ -38,7 +38,7 @@ class X509Certificate : public base::RefCountedThreadSafe<X509Certificate> {
public:
// SHA-1 fingerprint (160 bits) of a certificate.
struct Fingerprint {
- bool operator==(const Fingerprint& other) const {
+ bool Equals(const Fingerprint& other) const {
return memcmp(data, other.data, sizeof(data)) == 0;
}
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index c1a654f..c22b21f 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -1342,7 +1342,7 @@ int HttpNetworkTransaction::HandleCertificateRequest(int error) {
const std::vector<scoped_refptr<X509Certificate> >& client_certs =
response_.cert_request_info->client_certs;
for (size_t i = 0; i < client_certs.size(); ++i) {
- if (client_cert->fingerprint() == client_certs[i]->fingerprint()) {
+ if (client_cert->fingerprint().Equals(client_certs[i]->fingerprint())) {
ssl_config_.client_cert = client_cert;
ssl_config_.send_client_cert = true;
next_state_ = STATE_INIT_CONNECTION;