Hi all,

it seems that I am missing the usage of the set of obscure functions:

        CRYPTO_set_dynlock_create_callback()
        CRYPTO_set_dynlock_lock_callback()
        CRYPTO_set_dynlock_destroy_callback()

but I have no idea how to initialize those functions - is there any example
on how to do that by using pthreads ?

Ciao,
Max


Sander Temme wrote:

On Nov 19, 2008, at 11:24 PM, Max Pala wrote:

The software that I am writing is a multi-threaded OCSP responder.


Please make sure you initialize the engine correctly, and set up your locking callbacks before you actually initialize the engine. If you look at Apache:

http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ssl/ssl_engine_init.c?view=markup

the invocation of ssl_init_Engine() and ssl_util_thread_setup() used to be in the wrong order, which led to Apache children crashing on an assert() from within the Hardware Crypto Hook library (libnfhwcrhk) whenever more than five threads were used. Sounds familiar?

If that is all in order, perhaps you can trap that assert() in gdb and take a backtrace.

S.


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to