summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-05-07 17:08:15 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-05-07 17:08:15 (GMT)
commit0dcd8ae902a7902a32b9e4bfbb1ec12a98d00ce4 (patch)
tree9336a521a5b1ddde40ab91faeef4e30199777054 /Swiften
parent355db469b8d9e0e24925958dcbba2ca0a26848a7 (diff)
downloadswift-0dcd8ae902a7902a32b9e4bfbb1ec12a98d00ce4.zip
swift-0dcd8ae902a7902a32b9e4bfbb1ec12a98d00ce4.tar.bz2
Only assert when requesting CRL checking on OpenSSL.
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/TLS/OpenSSL/OpenSSLContextFactory.cpp8
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;
+ }
}