New Configure option no-<cipher> (rsa, idea, rc5, ...).
[openssl.git] / crypto / rc2 / rc2test.c
index a243998077f10b388db47b3372edb488ae144f17..6a5defa6ea8a549f8147b59b59e9d6e49e2343e9 100644 (file)
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
-#include "rc2.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]={
        {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
@@ -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