summaryrefslogtreecommitdiffstats
path: root/net/base/x509_certificate_win.cc
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-05 23:02:10 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-05 23:02:10 +0000
commit0dfee7c217bcefb0cf322a6f87b8a9f866637e2f (patch)
tree85361c81826419d97f224bd17ef58dbbda612e6f /net/base/x509_certificate_win.cc
parent4a4d43b3b71d7dbadd2c9b2f1ef413666c43c006 (diff)
downloadchromium_src-0dfee7c217bcefb0cf322a6f87b8a9f866637e2f.zip
chromium_src-0dfee7c217bcefb0cf322a6f87b8a9f866637e2f.tar.gz
chromium_src-0dfee7c217bcefb0cf322a6f87b8a9f866637e2f.tar.bz2
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
Diffstat (limited to 'net/base/x509_certificate_win.cc')
-rw-r--r--net/base/x509_certificate_win.cc10
1 files changed, 3 insertions, 7 deletions
diff --git a/net/base/x509_certificate_win.cc b/net/base/x509_certificate_win.cc
index 4c2cf2c..c98d738 100644
--- a/net/base/x509_certificate_win.cc
+++ b/net/base/x509_certificate_win.cc
@@ -165,7 +165,8 @@ void GetCertSubjectAltName(PCCERT_CONTEXT cert,
}
// Saves some information about the certificate chain chain_context in
-// *verify_result.
+// *verify_result. The caller MUST initialize *verify_result before calling
+// this function.
void GetCertChainInfo(PCCERT_CHAIN_CONTEXT chain_context,
CertVerifyResult* verify_result) {
PCERT_SIMPLE_CHAIN first_chain = chain_context->rgpChain[0];
@@ -433,12 +434,7 @@ bool X509Certificate::HasExpired() const {
int X509Certificate::Verify(const std::string& hostname,
bool rev_checking_enabled,
CertVerifyResult* verify_result) const {
- verify_result->cert_status = 0;
- verify_result->has_md5 = false;
- verify_result->has_md2 = false;
- verify_result->has_md4 = false;
- verify_result->has_md5_ca = false;
- verify_result->has_md2_ca = false;
+ verify_result->Reset();
// Build and validate certificate chain.