Index: net/base/cert_verifier.cc |
diff --git a/net/base/cert_verifier.cc b/net/base/cert_verifier.cc |
index 4e941335653adea573ae13ae3dadcb18ebed3c01..92245f0c9f0e54ac8e01d957f569a5e1a75fd39a 100644 |
--- a/net/base/cert_verifier.cc |
+++ b/net/base/cert_verifier.cc |
@@ -13,6 +13,7 @@ |
#include "net/base/cert_verify_result.h" |
#include "net/base/net_errors.h" |
#include "net/base/x509_certificate.h" |
+#include "net/base/x509_chain.h" |
namespace net { |
@@ -37,7 +38,7 @@ class CertVerifier::Request : |
void DoVerify() { |
// Running on the worker thread |
- error_ = cert_->Verify(hostname_, flags_, &result_); |
+ error_ = x509_chain::VerifySSLServer(cert_, hostname_, flags_, &result_); |
#if defined(USE_NSS) |
// Detach the thread from NSPR. |
// Calling NSS functions attaches the thread to NSPR, which stores |
@@ -134,7 +135,7 @@ int CertVerifier::Verify(X509Certificate* cert, |
// Do a synchronous verification. |
if (!callback) { |
CertVerifyResult result; |
- int rv = cert->Verify(hostname, flags, &result); |
+ int rv = x509_chain::VerifySSLServer(cert, hostname, flags, &result); |
*verify_result = result; |
return rv; |
} |