Hi 2007/8/13, Marek Marcola <[EMAIL PROTECTED]>: > > Hello, > > > I have add this piece of code in apps/openssl.c > > > > recompile and problem is the same > Did you add in main() code to activate this callbacks ? > Something like that: > > { > int i; > /* static locks area */ > mutex_buf = malloc(CRYPTO_num_locks() * sizeof(pthread_mutex_t)); > if (mutex_buf == NULL) { > return (-1); > } > for (i = 0; i < CRYPTO_num_locks(); i++) { > pthread_mutex_init(&mutex_buf[i], NULL); > } > /* static locks callbacks */ > CRYPTO_set_locking_callback(locking_function); > CRYPTO_set_id_callback(id_function); > /* dynamic locks callbacks */ > CRYPTO_set_dynlock_create_callback(dyn_create_function); > CRYPTO_set_dynlock_lock_callback(dyn_lock_function); > CRYPTO_set_dynlock_destroy_callback(dyn_destroy_function); > }
Hi Thanks for help, i have add this in main function, recomplie openssl and i dont have problems with callbacks. bash-2.03# echo $LD_LIBRARY_PATH :/usr/local/firebird/lib:/usr/local/firebird/intl:/usr/local/lib:/opt/nfast/toolkits/hwcrhk/ bash-2.03# ./openssl speed rsa512 -engine chil can't use that engine 1:error:84067071:CHIL engine:HWCRHK_INIT:unit failure:e_chil.c:604: 1:error:260B806D:engine routines:ENGINE_TABLE_REGISTER:init failed:eng_table.c:161: