From 0dcd8ae902a7902a32b9e4bfbb1ec12a98d00ce4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Mon, 7 May 2012 19:08:15 +0200 Subject: Only assert when requesting CRL checking on OpenSSL. 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; + } } -- cgit v0.10.2-6-g49f6