aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-22 09:18:04 -0500
committerJack Lloyd <[email protected]>2016-11-23 08:31:09 -0500
commitaf715722e5ea4802eaa5e93f1f44abc0958bf5be (patch)
treed62d27e50463eba5efbc5689ede4004b930b955c /src/tests
parenteac7117a0fcee1d421b0627ff3a6cd44b8f41b70 (diff)
Add macro signalling support for online revocation checks.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_ocsp.cpp4
1 files changed, 4 insertions, 0 deletions
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<Test::Result> 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;
}