version 1.65, 2006/01/30 16:17:07
|
version 1.66, 2006/03/14 02:06:21
|
|
|
SSLCallbackInfo* exData = (SSLCallbackInfo*) SSL_get_ex_data(ssl, SSLCallbackInfo::SSL_CALLBACK_INDEX); | SSLCallbackInfo* exData = (SSLCallbackInfo*) SSL_get_ex_data(ssl, SSLCallbackInfo::SSL_CALLBACK_INDEX); |
| |
| |
|
#ifdef PEGASUS_ENABLE_SSL_CRL_VERIFICATION |
// | // |
// Check to see if a CRL path is defined | // Check to see if a CRL path is defined |
// | // |
|
|
} | } |
| |
Tracer::trace(TRC_SSL, Tracer::LEVEL4, "---> SSL: CRL callback returned %d", revoked); | Tracer::trace(TRC_SSL, Tracer::LEVEL4, "---> SSL: CRL callback returned %d", revoked); |
|
#endif |
| |
// | // |
// get the current certificate | // get the current certificate |
|
|
SSLCertificateVerifyFunction* verifyCert, | SSLCertificateVerifyFunction* verifyCert, |
const String& randomFile) | const String& randomFile) |
{ | { |
|
#ifndef PEGASUS_ENABLE_SSL_CRL_VERIFICATION |
|
if ( crlPath.size() > 0 ) |
|
{ |
|
MessageLoaderParms parms("Common.Exception.SSL_CRL_NOT_ENABLED_EXCEPTION", |
|
"SSL CRL verification is not enabled."); |
|
throw Exception(parms); |
|
} |
|
#endif |
_rep = new SSLContextRep(trustStore, certPath, keyPath, crlPath, verifyCert, randomFile); | _rep = new SSLContextRep(trustStore, certPath, keyPath, crlPath, verifyCert, randomFile); |
} | } |
| |
|
|
| |
String SSLContext::getCRLPath() const | String SSLContext::getCRLPath() const |
{ | { |
|
#ifdef PEGASUS_ENABLE_SSL_CRL_VERIFICATION |
return (_rep->getCRLPath()); | return (_rep->getCRLPath()); |
|
#else |
|
MessageLoaderParms parms("Common.Exception.SSL_CRL_NOT_ENABLED_EXCEPTION", |
|
"SSL CRL verification is not enabled."); |
|
throw Exception(parms); |
|
#endif |
} | } |
| |
X509_STORE* SSLContext::getCRLStore() const | X509_STORE* SSLContext::getCRLStore() const |
{ | { |
|
#ifdef PEGASUS_ENABLE_SSL_CRL_VERIFICATION |
return (_rep->getCRLStore()); | return (_rep->getCRLStore()); |
|
#else |
|
MessageLoaderParms parms("Common.Exception.SSL_CRL_NOT_ENABLED_EXCEPTION", |
|
"SSL CRL verification is not enabled."); |
|
throw Exception(parms); |
|
#endif |
} | } |
| |
Boolean SSLContext::isPeerVerificationEnabled() const | Boolean SSLContext::isPeerVerificationEnabled() const |