From: Geoff Thorpe Date: Mon, 8 Oct 2001 17:08:17 +0000 (+0000) Subject: As ENGINE_load_openbsd_dev_crypto() is an API function, it makes sense for X-Git-Tag: OpenSSL_0_9_6c~26^2~144 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=7526e2c0430225f4d4c7e47cb63d18f44a4e3197;ds=sidebyside 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. --- diff --git a/crypto/engine/hw_openbsd_dev_crypto.c b/crypto/engine/hw_openbsd_dev_crypto.c index 083fbc5007..f88a21b631 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 */