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

Unified Diff: net/base/cert_status_flags.cc

Issue 8568040: Refuse to accept certificate chains containing any RSA public key smaller (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
Index: net/base/cert_status_flags.cc
===================================================================
--- net/base/cert_status_flags.cc (revision 110129)
+++ net/base/cert_status_flags.cc (working copy)
@@ -41,6 +41,8 @@
return CERT_STATUS_INVALID;
case ERR_CERT_WEAK_SIGNATURE_ALGORITHM:
return CERT_STATUS_WEAK_SIGNATURE_ALGORITHM;
+ case ERR_CERT_WEAK_KEY:
+ return CERT_STATUS_WEAK_KEY;
wtc 2011/11/17 02:52:18 Nit: since the ordering of the cases doesn't matte
case ERR_CERT_NOT_IN_DNS:
return CERT_STATUS_NOT_IN_DNS;
default:
@@ -57,6 +59,8 @@
return ERR_CERT_REVOKED;
if (cert_status & CERT_STATUS_INVALID)
return ERR_CERT_INVALID;
+ if (cert_status & CERT_STATUS_WEAK_KEY)
+ return ERR_CERT_WEAK_KEY;
// Recoverable errors
if (cert_status & CERT_STATUS_AUTHORITY_INVALID)

Powered by Google App Engine
This is Rietveld 408576698