Add a pointer to a paper (is the algorithm in section 4.2 the
[oweals/openssl.git] / crypto / rc4 / rc4.h
index a77898c1c8b482db17ac9b65348bd5c29ab59854..7418c2a9a210689f8f2610da7abd10ff2107d20b 100644 (file)
 extern "C" {
 #endif
 
-#include "opensslconf.h" /* RC4_INT */
+#ifdef NO_RC4
+#error RC4 is disabled.
+#endif
+
+#include <openssl/opensslconf.h> /* RC4_INT */
 
 typedef struct rc4_key_st
        {
@@ -71,21 +75,12 @@ typedef struct rc4_key_st
        RC4_INT data[256];
        } RC4_KEY;
 
-#ifndef NOPROTO
  
 const char *RC4_options(void);
 void RC4_set_key(RC4_KEY *key, int len, unsigned char *data);
 void RC4(RC4_KEY *key, unsigned long len, unsigned char *indata,
                unsigned char *outdata);
 
-#else
-
-const char *RC4_options();
-void RC4_set_key();
-void RC4();
-
-#endif
-
 #ifdef  __cplusplus
 }
 #endif