diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libressl/ressl_client.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/libressl/ressl_client.c b/src/lib/libressl/ressl_client.c index 5969a104f7..8723a35ae0 100644 --- a/src/lib/libressl/ressl_client.c +++ b/src/lib/libressl/ressl_client.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ressl_client.c,v 1.3 2014/08/05 12:46:16 jsing Exp $ */ | 1 | /* $OpenBSD: ressl_client.c,v 1.4 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 | * |
@@ -134,11 +134,14 @@ ressl_connect_socket(struct ressl *ctx, int socket, const char *hostname) | |||
134 | 134 | ||
135 | ctx->socket = socket; | 135 | ctx->socket = socket; |
136 | 136 | ||
137 | /* XXX - add a configuration option to control versions. */ | ||
138 | if ((ctx->ssl_ctx = SSL_CTX_new(SSLv23_client_method())) == NULL) { | 137 | if ((ctx->ssl_ctx = SSL_CTX_new(SSLv23_client_method())) == NULL) { |
139 | ressl_set_error(ctx, "ssl context failure"); | 138 | ressl_set_error(ctx, "ssl context failure"); |
140 | goto err; | 139 | goto err; |
141 | } | 140 | } |
141 | |||
142 | if (ressl_configure_ssl(ctx) != 0) | ||
143 | goto err; | ||
144 | |||
142 | if (ctx->config->verify) { | 145 | if (ctx->config->verify) { |
143 | if (hostname == NULL) { | 146 | if (hostname == NULL) { |
144 | ressl_set_error(ctx, "server name not specified"); | 147 | ressl_set_error(ctx, "server name not specified"); |