version 1.36, 2008/12/02 09:00:52
|
version 1.36.2.1, 2009/01/28 20:30:24
|
|
|
| |
_sslLocks.reset(new Mutex[CRYPTO_num_locks()]); | _sslLocks.reset(new Mutex[CRYPTO_num_locks()]); |
| |
# if defined(PEGASUS_HAVE_PTHREADS) && !defined(PEGASUS_OS_VMS) |
#ifdef PEGASUS_HAVE_PTHREADS |
// Set the ID callback. The ID callback returns a thread ID. | // Set the ID callback. The ID callback returns a thread ID. |
|
# ifdef PEGASUS_OS_VMS |
|
CRYPTO_set_id_callback((CRYPTO_SET_ID_CALLBACK) _getThreadId); |
|
# else |
CRYPTO_set_id_callback((CRYPTO_SET_ID_CALLBACK) pthread_self); | CRYPTO_set_id_callback((CRYPTO_SET_ID_CALLBACK) pthread_self); |
# endif | # endif |
|
#endif |
| |
// Set the locking callback. | // Set the locking callback. |
| |
|
|
(CRYPTO_SET_LOCKING_CALLBACK) _lockingCallback); | (CRYPTO_SET_LOCKING_CALLBACK) _lockingCallback); |
} | } |
| |
|
#if defined(PEGASUS_OS_VMS) && defined(PEGASUS_HAVE_PTHREADS) |
|
static unsigned long _getThreadId(void) |
|
{ |
|
return pthread_getsequence_np(pthread_self()); |
|
} |
|
#endif |
/* | /* |
Reset the SSL locking and ID callbacks. | Reset the SSL locking and ID callbacks. |
*/ | */ |