Bodo Moeller wrote: > On Sat, Jun 01, 2002 at 01:18:35PM +0100, Ben Laurie wrote: > > >>Also, the "thread id" may be used elsewhere - is there any point if its >>actually the PID? > > > Applications that are actually multi-threaded should (and indeed, on > most platforms, must) use CRYPTO_set_id_callback() so that OpenSSL can > use appropriate thread IDs. To use the PID is merely the default > behaviour of CRYPTO_thread_id(). This is generally not good enough > for most purposes that OpenSSL uses the thread ID for (it can be > helpful for memory debugging in programs that use fork(), though).
However, the number of calls is astonishing - and must be significantly expensive, too. Cheers, Ben. -- http://www.apache-ssl.org/ben.html http://www.thebunker.net/ "There is no limit to what a man can do or how far he can go if he doesn't mind who gets the credit." - Robert Woodruff ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]