aboutsummaryrefslogtreecommitdiffstats
path: root/checks/tls.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'checks/tls.cpp')
-rw-r--r--checks/tls.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/checks/tls.cpp b/checks/tls.cpp
index 55236515d..c0b85cc7e 100644
--- a/checks/tls.cpp
+++ b/checks/tls.cpp
@@ -1,3 +1,7 @@
+#include "validate.h"
+
+#if defined(BOTAN_HAS_TLS)
+
#include <botan/tls_server.h>
#include <botan/tls_client.h>
#include <botan/pkcs10.h>
@@ -6,7 +10,6 @@
#include <botan/x509_ca.h>
#include <botan/hex.h>
-#include "validate.h"
#include <iostream>
#include <vector>
#include <memory>
@@ -268,3 +271,7 @@ size_t do_tls_tests(RandomNumberGenerator& rng)
return errors;
}
+
+#else
+size_t do_tls_tests(RandomNumberGenerator&) { return 0; }
+#endif