diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-06-19 18:32:06 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-06-19 18:32:06 +0000 |
commit | d6cb8eaf98a2b268a28ceffd792b2636d81ddf7f (patch) | |
tree | cef315dadb2f3c04c4eeae29478923d7fe0131ea /lib/libcrypto | |
parent | d3e84aa19da424e2e03024292a158d218566e515 (diff) |
Properly guard ENGINE usage with !OPENSSL_NO_ENGINE
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/crypto_init.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libcrypto/crypto_init.c b/lib/libcrypto/crypto_init.c index ccf60223bc9..347f9542f1b 100644 --- a/lib/libcrypto/crypto_init.c +++ b/lib/libcrypto/crypto_init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crypto_init.c,v 1.8 2023/05/08 13:53:26 tb Exp $ */ +/* $OpenBSD: crypto_init.c,v 1.9 2023/06/19 18:32:05 tb Exp $ */ /* * Copyright (c) 2018 Bob Beck <beck@openbsd.org> * @@ -21,7 +21,9 @@ #include <stdio.h> #include <openssl/conf.h> +#ifndef OPENSSL_NO_ENGINE #include <openssl/engine.h> +#endif #include <openssl/err.h> #include <openssl/evp.h> #include <openssl/objects.h> @@ -79,7 +81,9 @@ OPENSSL_cleanup(void) ERR_free_strings(); CRYPTO_cleanup_all_ex_data(); +#ifndef OPENSSL_NO_ENGINE ENGINE_cleanup(); +#endif EVP_cleanup(); x509_issuer_cache_free(); |