| Index: net/third_party/nss/ssl/ssl3con.c
|
| ===================================================================
|
| --- net/third_party/nss/ssl/ssl3con.c (revision 75311)
|
| +++ net/third_party/nss/ssl/ssl3con.c (working copy)
|
| @@ -39,7 +39,7 @@
|
| * the terms of any one of the MPL, the GPL or the LGPL.
|
| *
|
| * ***** END LICENSE BLOCK ***** */
|
| -/* $Id: ssl3con.c,v 1.142 2010/06/24 19:53:20 wtc%google.com Exp $ */
|
| +/* $Id: ssl3con.c,v 1.142.2.4 2010/09/01 19:47:11 wtc%google.com Exp $ */
|
|
|
| #include "cert.h"
|
| #include "ssl.h"
|
| @@ -2850,7 +2850,11 @@
|
| }
|
|
|
| if (pms || !pwSpec->master_secret) {
|
| - master_params.pVersion = &pms_version;
|
| + if (isDH) {
|
| + master_params.pVersion = NULL;
|
| + } else {
|
| + master_params.pVersion = &pms_version;
|
| + }
|
| master_params.RandomInfo.pClientRandom = cr;
|
| master_params.RandomInfo.ulClientRandomLen = SSL3_RANDOM_LENGTH;
|
| master_params.RandomInfo.pServerRandom = sr;
|
| @@ -5372,7 +5376,7 @@
|
| goto loser; /* malformed. */
|
| }
|
| if (dh_p.len < 512/8) {
|
| - errCode = SSL_ERROR_WEAK_SERVER_KEY;
|
| + errCode = SSL_ERROR_WEAK_SERVER_EPHEMERAL_DH_KEY;
|
| goto alert_loser;
|
| }
|
| rv = ssl3_ConsumeHandshakeVariable(ss, &dh_g, 2, &b, &length);
|
|
|