Fix (most) WIN32 warnings and errors.
[openssl.git] / crypto / evp / c_all.c
index 5ffd352ea0c784c9817287b9675a5713e65f095b..a5da52e62d8b03ef8625fe39eb64df4f59faf97e 100644 (file)
 #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
 
 void OpenSSL_add_all_algorithms(void)
        {
        OPENSSL_add_all_algorithms_noconf();
        }
+#endif
 
 void OPENSSL_add_all_algorithms_noconf(void)
        {
+       /*
+        * For the moment OPENSSL_cpuid_setup does something
+        * only on IA-32, but we reserve the option for all
+        * platforms...
+        */
+       OPENSSL_cpuid_setup();
        OpenSSL_add_all_ciphers();
        OpenSSL_add_all_digests();
+#ifndef OPENSSL_NO_ENGINE
+# if defined(__OpenBSD__) || defined(__FreeBSD__)
+       ENGINE_setup_bsd_cryptodev();
+# endif
+#endif
        }