Add the possibility to build without the ENGINE framework.
[openssl.git] / crypto / engine / enginetest.c
index 87fa8c57b72ce2b4bfc056ad41ba27799d815be7..c2d0297392f15efd44d60a112c8184d16f6e8362 100644 (file)
  *
  */
 
-#include <openssl/e_os2.h>
 #include <stdio.h>
 #include <string.h>
+
+#ifdef OPENSSL_NO_ENGINE
+int main(int argc, char *argv[])
+{
+    printf("No ENGINE support\n");
+    return(0);
+}
+#else
+#include <openssl/e_os2.h>
 #include <openssl/buffer.h>
 #include <openssl/crypto.h>
 #include <openssl/engine.h>
@@ -272,3 +280,4 @@ end:
        CRYPTO_mem_leaks_fp(stderr);
        return to_return;
        }
+#endif