Give everything prototypes (well, everything that's actually used).
[openssl.git] / crypto / engine / enginetest.c
index 87fa8c57b72ce2b4bfc056ad41ba27799d815be7..cf82f490dbb5e0542c59d12b9addd2707f4283c2 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>
 #include <openssl/err.h>
 
-static void display_engine_list()
+static void display_engine_list(void)
        {
        ENGINE *h;
        int loop;
@@ -272,3 +280,4 @@ end:
        CRYPTO_mem_leaks_fp(stderr);
        return to_return;
        }
+#endif