From 0dfee7c217bcefb0cf322a6f87b8a9f866637e2f Mon Sep 17 00:00:00 2001 From: "wtc@chromium.org" Date: Thu, 5 Feb 2009 23:02:10 +0000 Subject: Add X509Certificate::Verify stubs for Mac and Linux. They do nothing but return ERR_NOT_IMPLEMENTED. In SSLClientSocketWin, call X509Certificate::CreateFromHandle only once and store the result in the server_cert_ member. Add the CertVerifyResult::Reset method to clear all members. R=eroman BUG=3592 Review URL: http://codereview.chromium.org/21071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9272 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/x509_certificate_nss.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'net/base/x509_certificate_nss.cc') diff --git a/net/base/x509_certificate_nss.cc b/net/base/x509_certificate_nss.cc index 2ca1255..2dcff9c 100644 --- a/net/base/x509_certificate_nss.cc +++ b/net/base/x509_certificate_nss.cc @@ -16,6 +16,7 @@ #include "base/logging.h" #include "base/time.h" #include "base/nss_init.h" +#include "net/base/net_errors.h" namespace net { @@ -199,6 +200,13 @@ void X509Certificate::GetDNSNames(std::vector* dns_names) const { dns_names->push_back(subject_.common_name); } +int X509Certificate::Verify(const std::string& hostname, + bool rev_checking_enabled, + CertVerifyResult* verify_result) const { + NOTIMPLEMENTED(); + return ERR_NOT_IMPLEMENTED; +} + // static X509Certificate::OSCertHandle X509Certificate::CreateOSCertHandleFromBytes( const char* data, int length) { -- cgit v1.1