In some cases, EVMSERR isn't visible (that's fairly new...).
[openssl.git] / crypto / evp / c_all.c
index 19737f39f634d35674b1040f4149e31d3da56ac8..fa60a73ead1338330d2c9f91139db1a2f8287081 100644 (file)
@@ -59,7 +59,9 @@
 #include <stdio.h>
 #include "cryptlib.h"
 #include <openssl/evp.h>
+#ifndef OPENSSL_NO_ENGINE
 #include <openssl/engine.h>
+#endif
 
 #if 0
 #undef OpenSSL_add_all_algorithms
@@ -74,7 +76,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
        }