From: Richard Levitte Date: Wed, 3 Feb 2016 23:25:49 +0000 (+0100) Subject: Only use TLS1.2 when it's available X-Git-Tag: OpenSSL_1_1_0-pre3~288 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=47c1a0e06e2f25d8bf6c6568ba4e3a11fdae422a;p=oweals%2Fopenssl.git Only use TLS1.2 when it's available Reviewed-by: Ben Laurie --- diff --git a/test/clienthellotest.c b/test/clienthellotest.c index 9cb563c548..66fc27f48b 100644 --- a/test/clienthellotest.c +++ b/test/clienthellotest.c @@ -55,6 +55,7 @@ #include +#include #include #include #include @@ -117,7 +118,11 @@ int main(int argc, char *argv[]) for (; currtest < TOTAL_NUM_TESTS; currtest++) { testresult = 0; if (currtest == TEST_SET_SESSION_TICK_DATA_TLS_1_2) { +#ifndef OPENSSL_NO_TLS1_2 ctx = SSL_CTX_new(TLSv1_2_method()); +#else + continue; +#endif } else { ctx = SSL_CTX_new(TLS_method()); }