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

Side by Side Diff: net/third_party/nss/patches/dh1024.patch

Issue 1143303002: NSS: reject DH groups smaller than 1024 bits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include patch file Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « net/third_party/nss/patches/applypatches.sh ('k') | net/third_party/nss/ssl/ssl3con.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 diff --git a/ssl/ssl3con.c b/ssl/ssl3con.c
2 index 89c98ea..861d434 100644
3 --- a/ssl/ssl3con.c
4 +++ b/ssl/ssl3con.c
5 @@ -6946,7 +6946,8 @@ ssl3_HandleServerKeyExchange(sslSocket *ss, SSL3Opaque *b, PRUint32 length)
6 if (rv != SECSuccess) {
7 goto loser; /* malformed. */
8 }
9 - if (dh_p.len < 512/8) {
10 + if (dh_p.len < 1024/8 ||
11 + (dh_p.len == 1024/8 && (dh_p.data[0] & 0x80) == 0)) {
12 errCode = SSL_ERROR_WEAK_SERVER_EPHEMERAL_DH_KEY;
13 goto alert_loser;
14 }
OLDNEW
« no previous file with comments | « net/third_party/nss/patches/applypatches.sh ('k') | net/third_party/nss/ssl/ssl3con.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698