diff options
author | tb <> | 2023-06-19 18:52:29 +0000 |
---|---|---|
committer | tb <> | 2023-06-19 18:52:29 +0000 |
commit | ca927b2474f226b4c6c0fa9b1d17adc404b09012 (patch) | |
tree | f2625a2a87a6ce4966de4e5f595df146ea71b4d7 | |
parent | c1e0a36ec6fb9ceef42e71b473b49cd69a54770e (diff) | |
download | openbsd-ca927b2474f226b4c6c0fa9b1d17adc404b09012.tar.gz openbsd-ca927b2474f226b4c6c0fa9b1d17adc404b09012.tar.bz2 openbsd-ca927b2474f226b4c6c0fa9b1d17adc404b09012.zip |
Make enginetest work with disabled engine support
-rw-r--r-- | src/regress/lib/libcrypto/engine/enginetest.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/engine/enginetest.c b/src/regress/lib/libcrypto/engine/enginetest.c index 40e598ab77..9afae39190 100644 --- a/src/regress/lib/libcrypto/engine/enginetest.c +++ b/src/regress/lib/libcrypto/engine/enginetest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: enginetest.c,v 1.9 2022/09/05 21:06:31 tb Exp $ */ | 1 | /* $OpenBSD: enginetest.c,v 1.10 2023/06/19 18:52:29 tb Exp $ */ |
2 | /* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL | 2 | /* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL |
3 | * project 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -61,6 +61,7 @@ | |||
61 | 61 | ||
62 | #include <openssl/buffer.h> | 62 | #include <openssl/buffer.h> |
63 | #include <openssl/crypto.h> | 63 | #include <openssl/crypto.h> |
64 | #ifndef OPENSSL_NO_ENGINE | ||
64 | #include <openssl/engine.h> | 65 | #include <openssl/engine.h> |
65 | #include <openssl/err.h> | 66 | #include <openssl/err.h> |
66 | 67 | ||
@@ -242,3 +243,11 @@ end: | |||
242 | CRYPTO_mem_leaks_fp(stderr); | 243 | CRYPTO_mem_leaks_fp(stderr); |
243 | return to_return; | 244 | return to_return; |
244 | } | 245 | } |
246 | #else | ||
247 | int | ||
248 | main(void) | ||
249 | { | ||
250 | printf("ENGINE support is disabled\n"); | ||
251 | return 0; | ||
252 | } | ||
253 | #endif | ||