aboutsummaryrefslogtreecommitdiffstats
path: root/apps/s_server.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2006-03-30 02:41:30 +0000
committerBodo Möller <bodo@openssl.org>2006-03-30 02:41:30 +0000
commitbcbe37b716780763ee66c839618bd76eda2b507c (patch)
tree929884d9fd8f879ed68a4c9d03e0e249b064c63d /apps/s_server.c
parentf393b7449dae2b81715fa84309c6ecf04be035d7 (diff)
downloadopenssl-bcbe37b716780763ee66c839618bd76eda2b507c.tar.gz
Change default curve (for compatibility with a
soon-to-be-widely-deployed implementation that doesn't support the previous default) Submitted by: Douglas Stebila
Diffstat (limited to 'apps/s_server.c')
-rw-r--r--apps/s_server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/s_server.c b/apps/s_server.c
index 903f1c47fc..9982d6ac7e 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -413,7 +413,7 @@ static void sv_usage(void)
#ifndef OPENSSL_NO_ECDH
BIO_printf(bio_err," -named_curve arg - Elliptic curve name to use for ephemeral ECDH keys.\n" \
" Use \"openssl ecparam -list_curves\" for all names\n" \
- " (default is sect163r2).\n");
+ " (default is nistp256).\n");
#endif
#ifdef FIONBIO
BIO_printf(bio_err," -nbio - Run with non-blocking IO\n");
@@ -1308,10 +1308,10 @@ bad:
else
{
BIO_printf(bio_s_out,"Using default temp ECDH parameters\n");
- ecdh = EC_KEY_new_by_curve_name(NID_sect163r2);
+ ecdh = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
if (ecdh == NULL)
{
- BIO_printf(bio_err, "unable to create curve (sect163r2)\n");
+ BIO_printf(bio_err, "unable to create curve (nistp256)\n");
goto end;
}
}