From: tb Date: Mon, 19 Jun 2023 18:52:29 +0000 (+0000) Subject: Make enginetest work with disabled engine support X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=dff2ba73612952104ff94e41a6043431d312642c;p=openbsd Make enginetest work with disabled engine support --- diff --git a/regress/lib/libcrypto/engine/enginetest.c b/regress/lib/libcrypto/engine/enginetest.c index 40e598ab771..9afae39190a 100644 --- a/regress/lib/libcrypto/engine/enginetest.c +++ b/regress/lib/libcrypto/engine/enginetest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: enginetest.c,v 1.9 2022/09/05 21:06:31 tb Exp $ */ +/* $OpenBSD: enginetest.c,v 1.10 2023/06/19 18:52:29 tb Exp $ */ /* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL * project 2000. */ @@ -61,6 +61,7 @@ #include #include +#ifndef OPENSSL_NO_ENGINE #include #include @@ -242,3 +243,11 @@ end: CRYPTO_mem_leaks_fp(stderr); return to_return; } +#else +int +main(void) +{ + printf("ENGINE support is disabled\n"); + return 0; +} +#endif