Thank you for the reply.
11.04.2011, 07:18, "David Schwartz" <dav...@webmaster.com>: > On 4/10/2011 3:03 PM, Anton Vodonosov wrote: > >> The question: if I provide locking_callback, will it be called only from >> the threads where I invoke OpenSSL functions, >> or OpenSSL may call it from some private/internal threads not created by me? > > Since there's no callback to create a thread, OpenSSL has no way to > create a thread. > >> I assume OpenSSL does not invoke the callback from any "not-mine" threads, >> because the documentation >> says I should only provide the callback if *my* program is multi-threaded, >> from which I deduce there is no >> any concurrency inside OpenSSL, until I invoke it from several threads. >> >> But I would like to here a confirmation. > > If OpenSSL created its own threads, that would defeat the entire logic > of the threading callbacks. The idea is to be able to compile OpenSSL > once and use it with various different threading models. > > DS > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-users@openssl.org > Automated List Manager majord...@openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org