Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Unified Diff: net/base/x509_certificate_win.cc

Issue 21071: Add X509Certificate::Verify stubs for Mac and Linux.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/x509_certificate_nss.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/x509_certificate_win.cc
===================================================================
--- net/base/x509_certificate_win.cc (revision 9103)
+++ net/base/x509_certificate_win.cc (working copy)
@@ -165,7 +165,8 @@
}
// 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 @@
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.
« no previous file with comments | « net/base/x509_certificate_nss.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698