diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2018-11-20 19:01:17 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2018-11-20 19:01:17 +0000 |
commit | f12dd99bc33eefb702280bdaed6156a57d867be1 (patch) | |
tree | 3ced903ff59efa46be0b01f4cae665cd9c974b15 /ssl/t1_lib.c | |
parent | 43a67e02da9068b94df1c07fc6f0d70bafd9263b (diff) |
Diffstat (limited to 'ssl/t1_lib.c')
-rw-r--r-- | ssl/t1_lib.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 8cb8816f9b13f..55f918d10851b 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -500,7 +500,11 @@ static int tls1_get_curvelist(SSL *s, int sess, } else # endif { - if (!s->server || s->cert->ecdh_tmp_auto) { + if (!s->server +# ifndef OPENSSL_NO_ECDH + || s->cert->ecdh_tmp_auto +# endif + ) { *pcurves = eccurves_auto; pcurveslen = sizeof(eccurves_auto); } else { |