diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libressl/ressl_server.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libressl/ressl_server.c b/src/lib/libressl/ressl_server.c index 24b54ad0d0..e2dc7cf088 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.7 2014/08/27 10:46:53 reyk Exp $ */ | 1 | /* $OpenBSD: ressl_server.c,v 1.8 2014/09/29 15:11:29 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -52,12 +52,13 @@ ressl_configure_server(struct ressl *ctx) | |||
52 | { | 52 | { |
53 | EC_KEY *ecdh_key; | 53 | EC_KEY *ecdh_key; |
54 | 54 | ||
55 | /* XXX - add a configuration option to control versions. */ | ||
56 | if ((ctx->ssl_ctx = SSL_CTX_new(SSLv23_server_method())) == NULL) { | 55 | if ((ctx->ssl_ctx = SSL_CTX_new(SSLv23_server_method())) == NULL) { |
57 | ressl_set_error(ctx, "ssl context failure"); | 56 | ressl_set_error(ctx, "ssl context failure"); |
58 | goto err; | 57 | goto err; |
59 | } | 58 | } |
60 | 59 | ||
60 | if (ressl_configure_ssl(ctx) != 0) | ||
61 | goto err; | ||
61 | if (ressl_configure_keypair(ctx) != 0) | 62 | if (ressl_configure_keypair(ctx) != 0) |
62 | goto err; | 63 | goto err; |
63 | 64 | ||