]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#4723 add CRYPTO_set_id_callback
authorHoward Chu <hyc@openldap.org>
Thu, 30 Nov 2006 06:37:12 +0000 (06:37 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 30 Nov 2006 06:37:12 +0000 (06:37 +0000)
libraries/libldap/tls.c

index 283e0e56d97dfa3d97315f1bc16891843efe9395..4c7e88b0179ee508e57ce4275ef7e7b19221c888 100644 (file)
@@ -103,7 +103,10 @@ static void tls_init_threads( void )
                ldap_pvt_thread_mutex_init( &tls_mutexes[i] );
        }
        CRYPTO_set_locking_callback( tls_locking_cb );
-       /* FIXME: the thread id should be added somehow... */
+       CRYPTO_set_id_callback( ldap_pvt_thread_self );
+       /* FIXME: CRYPTO_set_id_callback only works when ldap_pvt_thread_t
+        * is an integral type that fits in an unsigned long
+        */
 
        ldap_pvt_thread_mutex_init( &tls_def_ctx_mutex );
        ldap_pvt_thread_mutex_init( &tls_connect_mutex );