Do not call ENGINE_setup_bsd_cryptodev() when OPENSSL_NO_ENGINE is defined.
[openssl.git] / crypto / evp / c_all.c
index 19737f39f634d35674b1040f4149e31d3da56ac8..879d84ae79baa3f991557a4c708356cc560a4319 100644 (file)
@@ -74,7 +74,9 @@ void OPENSSL_add_all_algorithms_noconf(void)
        {
        OpenSSL_add_all_ciphers();
        OpenSSL_add_all_digests();
-#if defined(__OpenBSD__) || defined(__FreeBSD__)
+#ifndef OPENSSL_NO_ENGINE
+# if defined(__OpenBSD__) || defined(__FreeBSD__)
        ENGINE_setup_bsd_cryptodev();
+# endif
 #endif
        }