Fix test_ssl_new when compiled with no-tls1_2 or no-dtls1_2