version 1.72, 2006/08/22 17:49:09
|
version 1.74.4.2, 2006/11/22 15:21:55
|
|
|
} | } |
} | } |
| |
static unsigned long _get_thread_id() |
|
{ |
|
#if defined(PEGASUS_HAVE_PTHREADS) |
|
return pthread_self(); |
|
#else |
|
return 0; |
|
#endif |
|
} |
|
|
|
// | // |
// Initialize OpenSSL Locking and id callbacks. | // Initialize OpenSSL Locking and id callbacks. |
// | // |
|
|
| |
_sslLocks.reset(new Mutex[CRYPTO_num_locks()]); | _sslLocks.reset(new Mutex[CRYPTO_num_locks()]); |
| |
|
#if defined(PEGASUS_HAVE_PTHREADS) && !defined(PEGASUS_OS_VMS) |
// Set the ID callback. The ID callback returns a thread ID. | // Set the ID callback. The ID callback returns a thread ID. |
|
CRYPTO_set_id_callback((CRYPTO_SET_ID_CALLBACK) pthread_self); |
CRYPTO_set_id_callback((CRYPTO_SET_ID_CALLBACK)_get_thread_id); |
#endif |
| |
// Set the locking callback to pegasus_locking_callback. | // Set the locking callback to pegasus_locking_callback. |
| |
|
|
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
} | } |
| |
|
#define PEGASUS_ARRAY_T SSLCertificateInfoRep |
|
# include <Pegasus/Common/ArrayImpl.h> |
|
#undef PEGASUS_ARRAY_T |
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |