Referring to http://www.openssl.org/docs/crypto/threads.html

1 

"id_function(void) is a function that returns a thread ID. It is not
needed on Windows nor on platforms where getpid() returns a different
ID for each thread (most notably Linux)."

Is this correct?  On my Linux system, getpid() returns the same pid
for each thread.

2

"You can find out if OpenSSL was configured with thread support:

 #define OPENSSL_THREAD_DEFINES
 #include <openssl/opensslconf.h>
 #if defined(THREADS)
"

Is this correct?  I compiled for threads (seemed to be the default)
and I saw -DOPENSSL_THREADS.  When I try the test, THREADS is not
defined but OPENSSL_THREADS is.

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

Reply via email to