diff --git a/src/sniffer.c b/src/sniffer.c index 0ab7e282c..3d8aa17e0 100644 --- a/src/sniffer.c +++ b/src/sniffer.c @@ -1288,7 +1288,7 @@ static int SetNamedPrivateKey(const char* name, const char* address, int port, sniffer->server = serverIp; sniffer->port = port; - sniffer->ctx = SSL_CTX_new(TLSv1_client_method()); + sniffer->ctx = SSL_CTX_new(TLSv1_2_client_method()); if (!sniffer->ctx) { SetError(MEMORY_STR, error, NULL, 0); #ifdef HAVE_SNI