diff options
author | Remko Tronçon <git@el-tramo.be> | 2012-05-07 17:08:15 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2012-05-07 17:08:15 (GMT) |
commit | 0dcd8ae902a7902a32b9e4bfbb1ec12a98d00ce4 (patch) | |
tree | 9336a521a5b1ddde40ab91faeef4e30199777054 | |
parent | 355db469b8d9e0e24925958dcbba2ca0a26848a7 (diff) | |
download | swift-0dcd8ae902a7902a32b9e4bfbb1ec12a98d00ce4.zip swift-0dcd8ae902a7902a32b9e4bfbb1ec12a98d00ce4.tar.bz2 |
Only assert when requesting CRL checking on OpenSSL.
-rw-r--r-- | Swiften/TLS/OpenSSL/OpenSSLContextFactory.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Swiften/TLS/OpenSSL/OpenSSLContextFactory.cpp b/Swiften/TLS/OpenSSL/OpenSSLContextFactory.cpp index 6cd3c83..671cba7 100644 --- a/Swiften/TLS/OpenSSL/OpenSSLContextFactory.cpp +++ b/Swiften/TLS/OpenSSL/OpenSSLContextFactory.cpp @@ -18,9 +18,11 @@ TLSContext* OpenSSLContextFactory::createTLSContext() { return new OpenSSLContext(); } -void OpenSSLContextFactory::setCheckCertificateRevocation(bool) { - assert(false); - SWIFT_LOG(warning) << "CRL Checking not supported for OpenSSL" << std::endl; +void OpenSSLContextFactory::setCheckCertificateRevocation(bool check) { + if (check) { + assert(false); + SWIFT_LOG(warning) << "CRL Checking not supported for OpenSSL" << std::endl; + } } |