From 7526e2c0430225f4d4c7e47cb63d18f44a4e3197 Mon Sep 17 00:00:00 2001 From: Geoff Thorpe Date: Mon, 8 Oct 2001 17:08:17 +0000 Subject: [PATCH] As ENGINE_load_openbsd_dev_crypto() is an API function, it makes sense for it to be defined on all platforms whether or not it is of any practical use on them. This also resolves linker problems on "special" platforms, such as win32. --- crypto/engine/hw_openbsd_dev_crypto.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crypto/engine/hw_openbsd_dev_crypto.c b/crypto/engine/hw_openbsd_dev_crypto.c index 083fbc500..f88a21b63 100644 --- a/crypto/engine/hw_openbsd_dev_crypto.c +++ b/crypto/engine/hw_openbsd_dev_crypto.c @@ -55,7 +55,11 @@ #ifndef OPENSSL_OPENBSD_DEV_CRYPTO -static void *dummy=&dummy; +void ENGINE_load_openbsd_dev_crypto(void) + { + /* This is a NOP unless OPENSSL_OPENBSD_DEV_CRYPTO is defined */ + return; + } #else /* OPENSSL_OPENBSD_DEV_CRYPTO */