[Spice-devel] [PATCH 11/15] Change reds_init_ssl() to take RedsState arg

Frediano Ziglio fziglio at redhat.com
Wed Jan 20 05:25:23 PST 2016


From: Jonathon Jongsma <jjongsma at redhat.com>

---
 server/reds.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/reds.c b/server/reds.c
index 824e149..91fab12 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -2686,7 +2686,7 @@ static void openssl_thread_setup(void)
     CRYPTO_set_locking_callback(pthreads_locking_callback);
 }
 
-static int reds_init_ssl(void)
+static int reds_init_ssl(RedsState *reds)
 {
 #if OPENSSL_VERSION_NUMBER >= 0x10000000L
     const SSL_METHOD *ssl_method;
@@ -3400,7 +3400,7 @@ static int do_spice_init(RedsState *reds, SpiceCoreInterface *core_interface)
         goto err;
     }
     if (reds->secure_listen_socket != -1) {
-        if (reds_init_ssl() < 0) {
+        if (reds_init_ssl(reds) < 0) {
             goto err;
         }
     }
-- 
2.4.3



More information about the Spice-devel mailing list