From dff2ba73612952104ff94e41a6043431d312642c Mon Sep 17 00:00:00 2001 From: tb Date: Mon, 19 Jun 2023 18:52:29 +0000 Subject: [PATCH] Make enginetest work with disabled engine support --- regress/lib/libcrypto/engine/enginetest.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- 2.20.1