Correct ifdefs so that non-ECC builds will continue to build correctly.

r=wtchang  bug 341707.
This commit is contained in:
nelson%bolyard.com 2006-07-20 00:17:23 +00:00
Родитель 6f5c8dd1b7
Коммит 834365353b
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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.94 2006-07-19 01:40:17 nelson%bolyard.com Exp $ */
/* $Id: ssl3con.c,v 1.95 2006-07-20 00:17:23 nelson%bolyard.com Exp $ */
#include "nssrenam.h"
#include "cert.h"
@ -3507,7 +3507,7 @@ ssl3_SendClientHello(sslSocket *ss)
if (total_exten_len > 0)
total_exten_len += 2;
}
#ifndef NSS_ECC_MORE_THAN_SUITE_B
#if defined(NSS_ENABLE_ECC) && !defined(NSS_ECC_MORE_THAN_SUITE_B)
else { /* SSL3 only */
ssl3_DisableECCSuites(ss, NULL); /* disable all ECC suites */
}

Просмотреть файл

@ -37,7 +37,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/* $Id: sslcon.c,v 1.32 2006-07-19 01:40:17 nelson%bolyard.com Exp $ */
/* $Id: sslcon.c,v 1.33 2006-07-20 00:17:23 nelson%bolyard.com Exp $ */
#include "nssrenam.h"
#include "cert.h"
@ -3120,7 +3120,7 @@ ssl2_BeginClientHandshake(sslSocket *ss)
return rv;
}
#ifndef NSS_ECC_MORE_THAN_SUITE_B
#if defined(NSS_ENABLE_ECC) && !defined(NSS_ECC_MORE_THAN_SUITE_B)
/* ensure we don't neogtiate ECC cipher suites with SSL2 hello */
ssl3_DisableECCSuites(ss, NULL); /* disable all ECC suites */
#endif