Update OpenSSL call

SSLv23_method call was deprecated in favour of TLS_method.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
This commit is contained in:
Frediano Ziglio 2023-05-09 23:22:21 +01:00
parent 9213308fd3
commit e625a10a7a

View File

@ -2817,8 +2817,7 @@ static int reds_init_ssl(RedsState *reds)
openssl_global_init();
/* Create our context*/
/* SSLv23_method() handles TLSv1.x in addition to SSLv2/v3 */
ssl_method = SSLv23_method();
ssl_method = TLS_method();
reds->ctx = SSL_CTX_new(ssl_method);
if (!reds->ctx) {
spice_warning("Could not allocate new SSL context");