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). -- Bodo Möller <[EMAIL PROTECTED]> PGP http://www.informatik.tu-darmstadt.de/TI/Mitarbeiter/moeller/0x36d2c658.html * TU Darmstadt, Theoretische Informatik, Alexanderstr. 10, D-64283 Darmstadt * Tel. +49-6151-16-6628, Fax +49-6151-16-6036 ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]