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

Pavel Grunt pgrunt at redhat.com
Wed Jan 20 06:01:00 PST 2016


On Wed, 2016-01-20 at 13:25 +0000, Frediano Ziglio wrote:
> From: Jonathon Jongsma <jjongsma at redhat.com>
> 
Acked-by: Pavel Grunt <pgrunt 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;
>          }
>      }


More information about the Spice-devel mailing list