Use TLS 1.2 when connecting to a hub when using TLS.

This commit is contained in:
Jan Vidar Krey 2014-08-05 17:42:18 +02:00
parent ac543e3df4
commit b3b4876c08
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ ssize_t net_con_ssl_handshake(struct net_connection* con, enum net_con_ssl_mode
}
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);
handle->bio = SSL_get_rbio(handle->ssl);
con->ssl = (struct ssl_handle*) handle;