Use TLS 1.2 when connecting to a hub when using TLS.
This commit is contained in:
parent
ac543e3df4
commit
b3b4876c08
|
@ -285,7 +285,7 @@ ssize_t net_con_ssl_handshake(struct net_connection* con, enum net_con_ssl_mode
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
handle->ssl = SSL_new(SSL_CTX_new(TLSv1_method()));
|
handle->ssl = SSL_new(SSL_CTX_new(TLSv1_2_method()));
|
||||||
SSL_set_fd(handle->ssl, con->sd);
|
SSL_set_fd(handle->ssl, con->sd);
|
||||||
handle->bio = SSL_get_rbio(handle->ssl);
|
handle->bio = SSL_get_rbio(handle->ssl);
|
||||||
con->ssl = (struct ssl_handle*) handle;
|
con->ssl = (struct ssl_handle*) handle;
|
||||||
|
|
Loading…
Reference in New Issue