From af715722e5ea4802eaa5e93f1f44abc0958bf5be Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Tue, 22 Nov 2016 09:18:04 -0500 Subject: Add macro signalling support for online revocation checks. --- src/tests/test_ocsp.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tests') diff --git a/src/tests/test_ocsp.cpp b/src/tests/test_ocsp.cpp index da52191df..41faa5edf 100644 --- a/src/tests/test_ocsp.cpp +++ b/src/tests/test_ocsp.cpp @@ -143,6 +143,7 @@ class OCSP_Tests : public Test return result; } +#if defined(BOTAN_HAS_ONLINE_REVOCATION_CHECKS) Test::Result test_online_request() { Test::Result result("OCSP online check"); @@ -177,6 +178,7 @@ class OCSP_Tests : public Test return result; } +#endif public: std::vector run() override @@ -187,8 +189,10 @@ class OCSP_Tests : public Test results.push_back(test_response_parsing()); results.push_back(test_response_verification()); +#if defined(BOTAN_HAS_ONLINE_REVOCATION_CHECKS) if(Test::run_online_tests()) results.push_back(test_online_request()); +#endif return results; } -- cgit v1.2.3