diff options
Diffstat (limited to 'src/lib/libcrypto/rc4/rc4.h')
-rw-r--r-- | src/lib/libcrypto/rc4/rc4.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libcrypto/rc4/rc4.h b/src/lib/libcrypto/rc4/rc4.h index 7418c2a9a2..8722091f2e 100644 --- a/src/lib/libcrypto/rc4/rc4.h +++ b/src/lib/libcrypto/rc4/rc4.h | |||
@@ -59,16 +59,16 @@ | |||
59 | #ifndef HEADER_RC4_H | 59 | #ifndef HEADER_RC4_H |
60 | #define HEADER_RC4_H | 60 | #define HEADER_RC4_H |
61 | 61 | ||
62 | #ifdef __cplusplus | 62 | #ifdef OPENSSL_NO_RC4 |
63 | extern "C" { | ||
64 | #endif | ||
65 | |||
66 | #ifdef NO_RC4 | ||
67 | #error RC4 is disabled. | 63 | #error RC4 is disabled. |
68 | #endif | 64 | #endif |
69 | 65 | ||
70 | #include <openssl/opensslconf.h> /* RC4_INT */ | 66 | #include <openssl/opensslconf.h> /* RC4_INT */ |
71 | 67 | ||
68 | #ifdef __cplusplus | ||
69 | extern "C" { | ||
70 | #endif | ||
71 | |||
72 | typedef struct rc4_key_st | 72 | typedef struct rc4_key_st |
73 | { | 73 | { |
74 | RC4_INT x,y; | 74 | RC4_INT x,y; |
@@ -77,8 +77,8 @@ typedef struct rc4_key_st | |||
77 | 77 | ||
78 | 78 | ||
79 | const char *RC4_options(void); | 79 | const char *RC4_options(void); |
80 | void RC4_set_key(RC4_KEY *key, int len, unsigned char *data); | 80 | void RC4_set_key(RC4_KEY *key, int len, const unsigned char *data); |
81 | void RC4(RC4_KEY *key, unsigned long len, unsigned char *indata, | 81 | void RC4(RC4_KEY *key, unsigned long len, const unsigned char *indata, |
82 | unsigned char *outdata); | 82 | unsigned char *outdata); |
83 | 83 | ||
84 | #ifdef __cplusplus | 84 | #ifdef __cplusplus |