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

Unified Diff: net/base/x509_certificate_win.cc

Issue 164460: Merge 22709 - Treat certificate signatures using weak signature algorithms... (Closed) Base URL: svn://chrome-svn/chrome/branches/172/src/
Patch Set: Created 11 years, 4 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 | « no previous file | 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 23282)
+++ net/base/x509_certificate_win.cc (working copy)
@@ -473,6 +473,10 @@
verify_result->cert_status |= MapCertChainErrorStatusToCertStatus(
chain_context->TrustStatus.dwErrorStatus);
+ // Treat certificate signatures using weak signature algorithms as invalid.
+ if (verify_result->has_md2 || verify_result->has_md4)
+ verify_result->cert_status |= CERT_STATUS_INVALID;
+
std::wstring wstr_hostname = ASCIIToWide(hostname);
SSL_EXTRA_CERT_CHAIN_POLICY_PARA extra_policy_para;
Property changes on: net\base\x509_certificate_win.cc
___________________________________________________________________
Added: svn:mergeinfo
Merged /trunk/src/net/base/x509_certificate_win.cc:r22709
Merged /branches/chrome_webkit_merge_branch/net/base/x509_certificate_win.cc:r69-2775
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698