Re: [PATCH 2/2] OpenSSL from 1.1.0 is thread safe by default

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ack

On Thu, 2016-08-11 at 14:22 +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> ---
>  server/reds.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/server/reds.c b/server/reds.c
> index f74c8d3..c3780e0 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -2771,6 +2771,7 @@ static int ssl_password_cb(char *buf, int size, int
> flags, void *userdata)
>      return (strlen(pass));
>  }
>  
> +#if OPENSSL_VERSION_NUMBER < 0x1010000FL
>  static unsigned long pthreads_thread_id(void)
>  {
>      unsigned long ret;
> @@ -2808,6 +2809,11 @@ static void openssl_thread_setup(void)
>      CRYPTO_set_id_callback(pthreads_thread_id);
>      CRYPTO_set_locking_callback(pthreads_locking_callback);
>  }
> +#else
> +static inline void openssl_thread_setup(void)
> +{
> +}
> +#endif
>  
>  static gpointer openssl_global_init(gpointer arg)
>  {
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]