Lines 221-227
Link Here
|
221 |
if (ssl_last_error) fs_give ((void **) &ssl_last_error); |
221 |
if (ssl_last_error) fs_give ((void **) &ssl_last_error); |
222 |
ssl_last_host = host; |
222 |
ssl_last_host = host; |
223 |
if (!(stream->context = SSL_CTX_new ((flags & NET_TLSCLIENT) ? |
223 |
if (!(stream->context = SSL_CTX_new ((flags & NET_TLSCLIENT) ? |
224 |
TLSv1_client_method () : |
224 |
TLS_client_method () : |
225 |
SSLv23_client_method ()))) |
225 |
SSLv23_client_method ()))) |
226 |
return "SSL context failed"; |
226 |
return "SSL context failed"; |
227 |
SSL_CTX_set_options (stream->context,0); |
227 |
SSL_CTX_set_options (stream->context,0); |
Lines 708-714
Link Here
|
708 |
} |
708 |
} |
709 |
/* create context */ |
709 |
/* create context */ |
710 |
if (!(stream->context = SSL_CTX_new (start_tls ? |
710 |
if (!(stream->context = SSL_CTX_new (start_tls ? |
711 |
TLSv1_server_method () : |
711 |
TLS_server_method () : |
712 |
SSLv23_server_method ()))) |
712 |
SSLv23_server_method ()))) |
713 |
syslog (LOG_ALERT,"Unable to create SSL context, host=%.80s", |
713 |
syslog (LOG_ALERT,"Unable to create SSL context, host=%.80s", |
714 |
tcp_clienthost ()); |
714 |
tcp_clienthost ()); |