diff --git a/regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c b/regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c index 5de8707c4..3b4895895 100644 --- a/regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c +++ b/regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c @@ -15,11 +15,13 @@ #include #include +#ifdef WITH_OPENSSL #include #include #ifdef OPENSSL_HAS_NISTP256 # include #endif +#endif #include "../test_helper/test_helper.h" #include "ssherr.h" diff --git a/regress/unittests/sshkey/test_fuzz.c b/regress/unittests/sshkey/test_fuzz.c index a583c4a57..2fae19dcf 100644 --- a/regress/unittests/sshkey/test_fuzz.c +++ b/regress/unittests/sshkey/test_fuzz.c @@ -18,6 +18,7 @@ #include #include +#ifdef WITH_OPENSSL #include #include #include @@ -25,6 +26,7 @@ #ifdef OPENSSL_HAS_NISTP256 # include #endif +#endif #include "../test_helper/test_helper.h" diff --git a/regress/unittests/sshkey/test_sshkey.c b/regress/unittests/sshkey/test_sshkey.c index 1f5da68b1..982907ce7 100644 --- a/regress/unittests/sshkey/test_sshkey.c +++ b/regress/unittests/sshkey/test_sshkey.c @@ -15,12 +15,14 @@ #include #include +#ifdef WITH_OPENSSL #include #include #include #if defined(OPENSSL_HAS_ECC) && defined(OPENSSL_HAS_NISTP256) # include #endif +#endif #include "../test_helper/test_helper.h" diff --git a/regress/unittests/sshsig/tests.c b/regress/unittests/sshsig/tests.c index c44a98079..fdc3baeb7 100644 --- a/regress/unittests/sshsig/tests.c +++ b/regress/unittests/sshsig/tests.c @@ -18,8 +18,10 @@ #include #include +#ifdef WITH_OPENSSL #include #include +#endif #include "ssherr.h" #include "authfile.h"