aboutsummaryrefslogtreecommitdiffstats
path: root/checks
diff options
context:
space:
mode:
Diffstat (limited to 'checks')
-rw-r--r--checks/ecdh.cpp2
-rw-r--r--checks/ecdsa.cpp2
-rw-r--r--checks/tls.cpp9
3 files changed, 10 insertions, 3 deletions
diff --git a/checks/ecdh.cpp b/checks/ecdh.cpp
index 841bce55b..178282047 100644
--- a/checks/ecdh.cpp
+++ b/checks/ecdh.cpp
@@ -12,7 +12,7 @@
#include "validate.h"
#include "common.h"
-#if defined(BOTAN_HAS_ECDH)
+#if defined(BOTAN_HAS_ECDH) && defined(BOTAN_HAS_X509)
#include <iostream>
#include <fstream>
diff --git a/checks/ecdsa.cpp b/checks/ecdsa.cpp
index a43de69c5..2506e1389 100644
--- a/checks/ecdsa.cpp
+++ b/checks/ecdsa.cpp
@@ -8,7 +8,7 @@
#include "validate.h"
-#if defined(BOTAN_HAS_ECDSA)
+#if defined(BOTAN_HAS_ECDSA) && defined(BOTAN_HAS_X509)
#include <botan/botan.h>
#include <botan/pubkey.h>
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