]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[sofia-sip] Fix use of deprecated CRYPTO_set_id_callback().
authorAndrey Volk <andywolk@gmail.com>
Sat, 28 Mar 2020 23:20:59 +0000 (03:20 +0400)
committerAndrey Volk <andywolk@gmail.com>
Wed, 6 May 2020 23:02:08 +0000 (03:02 +0400)
libs/sofia-sip/.update
libs/sofia-sip/libsofia-sip-ua/tport/ws.c

index 0a25dc4ef5b5a8b0a9f689bc7f10bb410cfd1465..16917b0159be0e256c3cfa1ded9ca3eba1da1c7b 100644 (file)
@@ -1 +1 @@
-Mon Mar 16 18:37:11 UTC 2020
+Sat Mar 28 10:36:01 UTC 2020
index c004781e12cfd518d17c223c6f5b1af5786e7aee..0c2709ea98d75cdb2fb4e5883982240d096b7327 100644 (file)
@@ -42,7 +42,7 @@ void deinit_ssl(void)
 }
 
 #else
-static unsigned long pthreads_thread_id(void);
+static void pthreads_thread_id(CRYPTO_THREADID *id);
 static void pthreads_locking_callback(int mode, int type, const char *file, int line);
 
 static pthread_mutex_t *lock_cs;
@@ -62,7 +62,7 @@ static void thread_setup(void)
                pthread_mutex_init(&(lock_cs[i]), NULL);
        }
 
-       CRYPTO_set_id_callback(pthreads_thread_id);
+       CRYPTO_THREADID_set_callback(pthreads_thread_id);
        CRYPTO_set_locking_callback(pthreads_locking_callback);
 }
 
@@ -93,9 +93,9 @@ static void pthreads_locking_callback(int mode, int type, const char *file, int
 
 
 
-static unsigned long pthreads_thread_id(void)
+static void pthreads_thread_id(CRYPTO_THREADID *id)
 {
-       return (unsigned long) pthread_self();
+       CRYPTO_THREADID_set_numeric(id, (unsigned long)pthread_self());
 }