From 69a4e7d82eb715a276dcc725e80a7bd4e39d747d Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Mon, 12 Dec 2016 02:59:40 +0100 Subject: Fixup protocol version handling in OpenSSL 1.0.X. --- socket.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/socket.c b/socket.c index f6a3b19c..6043b49b 100644 --- a/socket.c +++ b/socket.c @@ -887,6 +887,10 @@ static const char *SSLCertGetCN(const char *mycert, /* OSSL_proto_version_logic for OpenSSL 1.0.x and LibreSSL */ static int OSSL10X_proto_version_logic(int sock, const char **myproto, int *avoid_ssl_versions) { + if (!*myproto) { + *myproto = "auto"; + } + if (!strcasecmp("ssl3", *myproto)) { #if (HAVE_DECL_SSLV3_CLIENT_METHOD > 0) && (0 == OPENSSL_NO_SSL3 + 0) _ctx[sock] = SSL_CTX_new(SSLv3_client_method()); -- cgit v1.2.3