summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rc4/rc4.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/rc4/rc4.h (renamed from src/lib/libssl/src/crypto/rc4/rc4.org)29
1 files changed, 7 insertions, 22 deletions
diff --git a/src/lib/libssl/src/crypto/rc4/rc4.org b/src/lib/libcrypto/rc4/rc4.h
index c558651af8..7418c2a9a2 100644
--- a/src/lib/libssl/src/crypto/rc4/rc4.org
+++ b/src/lib/libcrypto/rc4/rc4.h
@@ -1,4 +1,4 @@
1/* crypto/rc4/rc4.org */ 1/* crypto/rc4/rc4.h */
2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -56,14 +56,6 @@
56 * [including the GNU Public Licence.] 56 * [including the GNU Public Licence.]
57 */ 57 */
58 58
59/* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
60 *
61 * Always modify rc4.org since rc4.h is automatically generated from
62 * it during SSLeay configuration.
63 *
64 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
65 */
66
67#ifndef HEADER_RC4_H 59#ifndef HEADER_RC4_H
68#define HEADER_RC4_H 60#define HEADER_RC4_H
69 61
@@ -71,9 +63,11 @@
71extern "C" { 63extern "C" {
72#endif 64#endif
73 65
74/* using int types make the structure larger but make the code faster 66#ifdef NO_RC4
75 * on most boxes I have tested - up to %20 faster. */ 67#error RC4 is disabled.
76#define RC4_INT unsigned int 68#endif
69
70#include <openssl/opensslconf.h> /* RC4_INT */
77 71
78typedef struct rc4_key_st 72typedef struct rc4_key_st
79 { 73 {
@@ -81,21 +75,12 @@ typedef struct rc4_key_st
81 RC4_INT data[256]; 75 RC4_INT data[256];
82 } RC4_KEY; 76 } RC4_KEY;
83 77
84#ifndef NOPROTO
85 78
86char *RC4_options(void); 79const char *RC4_options(void);
87void RC4_set_key(RC4_KEY *key, int len, unsigned char *data); 80void RC4_set_key(RC4_KEY *key, int len, unsigned char *data);
88void RC4(RC4_KEY *key, unsigned long len, unsigned char *indata, 81void RC4(RC4_KEY *key, unsigned long len, unsigned char *indata,
89 unsigned char *outdata); 82 unsigned char *outdata);
90 83
91#else
92
93char *RC4_options();
94void RC4_set_key();
95void RC4();
96
97#endif
98
99#ifdef __cplusplus 84#ifdef __cplusplus
100} 85}
101#endif 86#endif