version 1.38, 2009/05/05 09:01:28
|
version 1.41.10.1, 2013/08/13 04:24:34
|
|
|
| |
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 |
| |
|
|
"In ~SSLEnvironmentInitializer(), _instanceCount is %d", | "In ~SSLEnvironmentInitializer(), _instanceCount is %d", |
_instanceCount)); | _instanceCount)); |
| |
|
|
if (_instanceCount == 0) | if (_instanceCount == 0) |
{ | { |
|
EVP_cleanup(); |
|
CRYPTO_cleanup_all_ex_data(); |
ERR_free_strings(); | ERR_free_strings(); |
_uninitializeCallbacks(); | _uninitializeCallbacks(); |
} | } |
|
ERR_remove_state(0); |
} | } |
| |
private: | private: |
|
|
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& keyPath = String::EMPTY, | const String& keyPath = String::EMPTY, |
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 Boolean& sslCompatibility = false); |
| |
SSLContextRep(const SSLContextRep& sslContextRep); | SSLContextRep(const SSLContextRep& sslContextRep); |
| |
|
|
| |
String getKeyPath() const; | String getKeyPath() const; |
| |
|
String getCipherSuite() const; |
|
|
#ifdef PEGASUS_USE_DEPRECATED_INTERFACES | #ifdef PEGASUS_USE_DEPRECATED_INTERFACES |
String getTrustStoreUserName() const; | String getTrustStoreUserName() const; |
#endif | #endif |
|
|
String _keyPath; | String _keyPath; |
String _crlPath; | String _crlPath; |
String _randomFile; | String _randomFile; |
|
String _cipherSuite; |
|
Boolean _sslCompatibility; |
SSL_CTX * _sslContext; | SSL_CTX * _sslContext; |
| |
Boolean _verifyPeer; | Boolean _verifyPeer; |