version 1.87, 2007/08/23 01:51:14
|
version 1.88, 2007/09/03 04:39:48
|
|
|
#include "SSLContext.h" | #include "SSLContext.h" |
#include "SSLContextRep.h" | #include "SSLContextRep.h" |
| |
|
#ifdef PEGASUS_OS_PASE |
|
# include <ILEWrapper/ILEUtilities.h> |
|
#endif |
// | // |
// Typedef's for OpenSSL callback functions. | // Typedef's for OpenSSL callback functions. |
// | // |
|
|
Boolean ret; | Boolean ret; |
int retVal = 0; | int retVal = 0; |
| |
#ifdef PEGASUS_SSL_RANDOMFILE |
#if defined(PEGASUS_SSL_RANDOMFILE) && !defined(PEGASUS_OS_PASE) |
if ( RAND_status() == 0 ) | if ( RAND_status() == 0 ) |
{ | { |
// | // |
|
|
} | } |
#endif /* PEGASUS_SSL_RANDOMFILE */ | #endif /* PEGASUS_SSL_RANDOMFILE */ |
| |
|
#ifdef PEGASUS_OS_PASE |
|
if (RAND_status() == 0) |
|
{ |
|
// generate random number for pase must use specify function |
|
unsigned char prn[1024]; |
|
umeGenerateRandomNumber(prn); |
|
RAND_seed(prn, 1024); |
|
} |
|
#endif |
|
|
int seedRet = RAND_status(); | int seedRet = RAND_status(); |
if (seedRet == 0) | if (seedRet == 0) |
{ | { |