mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 18:30:11 +01:00
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:
parent
e18c83d089
commit
7ce0f42e7b
@ -742,7 +742,7 @@ int init_ssl_to_server(struct data *data){
|
||||
SSL_load_error_strings();
|
||||
|
||||
#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
|
||||
data->net->ctx = SSL_CTX_new(TLS_client_method());
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user