diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libressl/ressl_server.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libressl/ressl_server.c b/src/lib/libressl/ressl_server.c index 33ac8fc33d..1d5ee2a3f9 100644 --- a/src/lib/libressl/ressl_server.c +++ b/src/lib/libressl/ressl_server.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ressl_server.c,v 1.9 2014/09/29 15:31:38 jsing Exp $ */ | 1 | /* $OpenBSD: ressl_server.c,v 1.10 2014/10/03 14:09:09 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -62,7 +62,9 @@ ressl_configure_server(struct ressl *ctx) | |||
| 62 | if (ressl_configure_keypair(ctx) != 0) | 62 | if (ressl_configure_keypair(ctx) != 0) |
| 63 | goto err; | 63 | goto err; |
| 64 | 64 | ||
| 65 | if (ctx->config->ecdhcurve != NID_undef) { | 65 | if (ctx->config->ecdhcurve == -1) { |
| 66 | SSL_CTX_set_ecdh_auto(ctx->ssl_ctx, 1); | ||
| 67 | } else if (ctx->config->ecdhcurve != NID_undef) { | ||
| 66 | if ((ecdh_key = EC_KEY_new_by_curve_name( | 68 | if ((ecdh_key = EC_KEY_new_by_curve_name( |
| 67 | ctx->config->ecdhcurve)) == NULL) { | 69 | ctx->config->ecdhcurve)) == NULL) { |
| 68 | ressl_set_error(ctx, "failed to set ECDH curve"); | 70 | ressl_set_error(ctx, "failed to set ECDH curve"); |
