summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <freddy77@gmail.com>2023-05-09 23:22:21 +0100
committerFrediano Ziglio <freddy77@gmail.com>2023-05-10 11:17:47 +0100
commite625a10a7a3104514a8bd56ee3ca36d8d9b1cf33 (patch)
treeb3bce06ff7b28e7d924008ceec801624b48129fb
parent9213308fd39f6707741a8de3c0e278517a223f73 (diff)
Update OpenSSL call
SSLv23_method call was deprecated in favour of TLS_method. Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
-rw-r--r--server/reds.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/reds.cpp b/server/reds.cpp
index 5e9a129a..56b77095 100644
--- a/server/reds.cpp
+++ b/server/reds.cpp
@@ -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");