From d9e70eaf9b5307bd5e4ae76eb524789c51632cff Mon Sep 17 00:00:00 2001 From: tb Date: Mon, 19 Jun 2023 18:51:47 +0000 Subject: [PATCH] Fix GOST test with disabled engine --- regress/lib/libcrypto/gost/gost2814789t.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/regress/lib/libcrypto/gost/gost2814789t.c b/regress/lib/libcrypto/gost/gost2814789t.c index e531229f63e..5e439a7e36d 100644 --- a/regress/lib/libcrypto/gost/gost2814789t.c +++ b/regress/lib/libcrypto/gost/gost2814789t.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gost2814789t.c,v 1.8 2022/09/12 04:20:59 tb Exp $ */ +/* $OpenBSD: gost2814789t.c,v 1.9 2023/06/19 18:51:47 tb Exp $ */ /* vim: set fileencoding=ascii : Charset: ASCII */ /* test/gostr2814789t.c */ /* ==================================================================== @@ -24,7 +24,9 @@ int main(int argc, char *argv[]) #include #include #include +#ifndef OPENSSL_NO_ENGINE #include +#endif #include #include #include @@ -1287,7 +1289,9 @@ int main(int argc, char *argv[]) } ERR_load_crypto_strings(); +#ifndef OPENSSL_NO_ENGINE ENGINE_load_builtin_engines(); +#endif OPENSSL_load_builtin_modules(); OpenSSL_add_all_algorithms(); -- 2.20.1