File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 2929#include <openssl/opensslv.h>
3030#include <openssl/bio.h>
3131#include <openssl/pem.h>
32+ #if !defined(OPENSSL_NO_ENGINE )
3233#include <openssl/engine.h>
34+ #endif
3335#if !defined(LIBRESSL_VERSION_NUMBER ) && OPENSSL_VERSION_NUMBER >= 0x30000000L
3436#include <openssl/provider.h>
3537#endif
@@ -385,6 +387,7 @@ static ptls_aead_context_t *create_ech_opener(ptls_ech_create_opener_t *self, pt
385387
386388#if ASYNC_TESTS
387389
390+ #if !defined(OPENSSL_NO_ENGINE )
388391static ENGINE * load_engine (const char * name )
389392{
390393 ENGINE * e ;
@@ -398,6 +401,7 @@ static ENGINE *load_engine(const char *name)
398401
399402 return e ;
400403}
404+ #endif
401405
402406static struct {
403407 struct {
@@ -639,6 +643,7 @@ int main(int argc, char **argv)
639643 subtest ("many-handshakes-non-async" , many_handshakes );
640644 openssl_sign_certificate .async = 0 ;
641645 subtest ("many-handshakes-async" , many_handshakes );
646+ #if !defined(OPENSSL_NO_ENGINE )
642647 { /* qatengine should be tested at last, because we do not have the code to unload or un-default it */
643648 const char * engine_name = "qatengine" ;
644649 ENGINE * qatengine ;
@@ -651,6 +656,7 @@ int main(int argc, char **argv)
651656 note ("%s not found" , engine_name );
652657 }
653658 }
659+ #endif
654660#endif
655661
656662 int ret = done_testing ();
You can’t perform that action at this time.
0 commit comments