Use TLS v1.2 with openssl 1.0.x for connecting remote pop3/imap servers

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2020-07-23 09:15:39 +02:00
parent e18c83d089
commit 7ce0f42e7b

View File

@ -742,7 +742,7 @@ int init_ssl_to_server(struct data *data){
SSL_load_error_strings(); SSL_load_error_strings();
#if OPENSSL_VERSION_NUMBER < 0x10100000L #if OPENSSL_VERSION_NUMBER < 0x10100000L
data->net->ctx = SSL_CTX_new(TLSv1_client_method()); data->net->ctx = SSL_CTX_new(TLSv1_2_client_method());
#else #else
data->net->ctx = SSL_CTX_new(TLS_client_method()); data->net->ctx = SSL_CTX_new(TLS_client_method());
#endif #endif