diff --git a/t/openssl.c b/t/openssl.c index 59ad2b6d..13805486 100644 --- a/t/openssl.c +++ b/t/openssl.c @@ -29,7 +29,9 @@ #include #include #include +#if !defined(OPENSSL_NO_ENGINE) #include +#endif #if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x30000000L #include #endif @@ -385,6 +387,7 @@ static ptls_aead_context_t *create_ech_opener(ptls_ech_create_opener_t *self, pt #if ASYNC_TESTS +#if !defined(OPENSSL_NO_ENGINE) static ENGINE *load_engine(const char *name) { ENGINE *e; @@ -398,6 +401,7 @@ static ENGINE *load_engine(const char *name) return e; } +#endif static struct { struct { @@ -639,6 +643,7 @@ int main(int argc, char **argv) subtest("many-handshakes-non-async", many_handshakes); openssl_sign_certificate.async = 0; subtest("many-handshakes-async", many_handshakes); +#if !defined(OPENSSL_NO_ENGINE) { /* qatengine should be tested at last, because we do not have the code to unload or un-default it */ const char *engine_name = "qatengine"; ENGINE *qatengine; @@ -651,6 +656,7 @@ int main(int argc, char **argv) note("%s not found", engine_name); } } +#endif #endif int ret = done_testing();