New Configure option no-<cipher> (rsa, idea, rc5, ...).
[openssl.git] / crypto / rc2 / rc2test.c
index a5658479584f7dd227390505c84e2a865675baa7..6a5defa6ea8a549f8147b59b59e9d6e49e2343e9 100644 (file)
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
+
+#ifdef NO_RC2
+int main(int argc, char *argv[])
+{
+    printf("No RC2 support\n");
+    return(0);
+}
+#else
 #include <openssl/rc2.h>
 
 unsigned char RC2key[4][16]={
@@ -125,14 +133,8 @@ static unsigned char cfb_cipher64[CFB_TEST_SIZE]={
        }; 
 
 
-#ifndef NOPROTO
 /*static int cfb64_test(unsigned char *cfb_cipher);*/
 static char *pt(unsigned char *p);
-#else
-/*static int cfb64_test(); */
-static char *pt();
-#endif
-
 #endif
 
 int main(int argc, char *argv[])
@@ -264,3 +266,4 @@ static char *pt(unsigned char *p)
        }
        
 #endif
+#endif