Hotfix TLSv1 support for OpenSSL #84
authorFelix Morgner <felix.morgner@gmail.com>
Sun, 6 Mar 2016 22:54:51 +0000 (23:54 +0100)
committerFelix Morgner <felix.morgner@gmail.com>
Sun, 6 Mar 2016 22:54:51 +0000 (23:54 +0100)
src/ssli_openssl.c

index 2dd55ef8839bfe334c717c896305416543b4608f..0f631d20276a2c1dc0cca6ae5a085c95cdc53e87 100644 (file)
@@ -222,7 +222,9 @@ void SSLi_init(void)
        SSL_load_error_strings();
        ERR_load_crypto_strings();
 
-       context = SSL_CTX_new(TLSv1_2_server_method());
+       context = SSL_CTX_new(SSLv23_server_method());
+       SSL_CTX_set_options(context, SSL_OP_NO_SSLv2);
+       SSL_CTX_set_options(context, SSL_OP_NO_SSLv3);
        if (context == NULL)
        {
                ERR_print_errors_fp(stderr);