version 1.39.2.1, 2013/03/07 19:58:48
|
version 1.42, 2013/08/06 08:37:37
|
|
|
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
#ifdef PEGASUS_HAS_SSL |
struct FreeX509STOREPtr | struct FreeX509STOREPtr |
{ | { |
void operator()(X509_STORE* ptr) | void operator()(X509_STORE* ptr) |
{ | { |
#ifdef PEGASUS_HAS_SSL |
|
X509_STORE_free(ptr); | X509_STORE_free(ptr); |
#endif |
|
} | } |
}; | }; |
|
#else |
|
struct FreeX509STOREPtr |
|
{ |
|
void operator()(X509_STORE*) |
|
{ |
|
} |
|
}; |
|
#endif |
|
|
| |
#ifdef PEGASUS_HAS_SSL | #ifdef PEGASUS_HAS_SSL |
| |
|
|
static void _lockingCallback( | static void _lockingCallback( |
int mode, | int mode, |
int type, | int type, |
const char* file, |
const char*, |
int line) |
int) |
{ | { |
if (mode & CRYPTO_LOCK) | if (mode & CRYPTO_LOCK) |
{ | { |
|
|
const String& crlPath = String::EMPTY, | const String& crlPath = String::EMPTY, |
SSLCertificateVerifyFunction* verifyCert = NULL, | SSLCertificateVerifyFunction* verifyCert = NULL, |
const String& randomFile = String::EMPTY, | const String& randomFile = String::EMPTY, |
const String& cipherSuite = String::EMPTY); |
const String& cipherSuite = String::EMPTY, |
|
const Boolean& sslCompatibility = false); |
| |
SSLContextRep(const SSLContextRep& sslContextRep); | SSLContextRep(const SSLContextRep& sslContextRep); |
| |
|
|
String _crlPath; | String _crlPath; |
String _randomFile; | String _randomFile; |
String _cipherSuite; | String _cipherSuite; |
|
Boolean _sslCompatibility; |
SSL_CTX * _sslContext; | SSL_CTX * _sslContext; |
| |
Boolean _verifyPeer; | Boolean _verifyPeer; |