diff options
Diffstat (limited to 'src/lib/libcrypto/rc4')
-rw-r--r-- | src/lib/libcrypto/rc4/Makefile.ssl | 10 | ||||
-rw-r--r-- | src/lib/libcrypto/rc4/rc4.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/rc4/rc4.h | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/rc4/rc4speed.c | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/rc4/rc4test.c | 2 |
5 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/libcrypto/rc4/Makefile.ssl b/src/lib/libcrypto/rc4/Makefile.ssl index e75858d3b9..25d9e4344c 100644 --- a/src/lib/libcrypto/rc4/Makefile.ssl +++ b/src/lib/libcrypto/rc4/Makefile.ssl | |||
@@ -12,7 +12,8 @@ INSTALL_PREFIX= | |||
12 | OPENSSLDIR= /usr/local/ssl | 12 | OPENSSLDIR= /usr/local/ssl |
13 | INSTALLTOP=/usr/local/ssl | 13 | INSTALLTOP=/usr/local/ssl |
14 | MAKE= make -f Makefile.ssl | 14 | MAKE= make -f Makefile.ssl |
15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) | 15 | MAKEDEPPROG= makedepend |
16 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
16 | MAKEFILE= Makefile.ssl | 17 | MAKEFILE= Makefile.ssl |
17 | AR= ar r | 18 | AR= ar r |
18 | 19 | ||
@@ -47,8 +48,7 @@ all: lib | |||
47 | 48 | ||
48 | lib: $(LIBOBJ) | 49 | lib: $(LIBOBJ) |
49 | $(AR) $(LIB) $(LIBOBJ) | 50 | $(AR) $(LIB) $(LIBOBJ) |
50 | @echo You may get an error following this line. Please ignore. | 51 | $(RANLIB) $(LIB) || echo Never mind. |
51 | - $(RANLIB) $(LIB) | ||
52 | @touch lib | 52 | @touch lib |
53 | 53 | ||
54 | # elf | 54 | # elf |
@@ -109,7 +109,7 @@ clean: | |||
109 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 109 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
110 | 110 | ||
111 | rc4_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc4.h | 111 | rc4_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc4.h |
112 | rc4_enc.o: rc4_locl.h | 112 | rc4_enc.o: rc4_enc.c rc4_locl.h |
113 | rc4_skey.o: ../../include/openssl/opensslconf.h | 113 | rc4_skey.o: ../../include/openssl/opensslconf.h |
114 | rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/rc4.h | 114 | rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/rc4.h |
115 | rc4_skey.o: rc4_locl.h | 115 | rc4_skey.o: rc4_locl.h rc4_skey.c |
diff --git a/src/lib/libcrypto/rc4/rc4.c b/src/lib/libcrypto/rc4/rc4.c index bfb0a3c1f9..c2165b0b75 100644 --- a/src/lib/libcrypto/rc4/rc4.c +++ b/src/lib/libcrypto/rc4/rc4.c | |||
@@ -141,7 +141,7 @@ bad: | |||
141 | } | 141 | } |
142 | } | 142 | } |
143 | 143 | ||
144 | #ifdef MSDOS | 144 | #ifdef OPENSSL_SYS_MSDOS |
145 | /* This should set the file to binary mode. */ | 145 | /* This should set the file to binary mode. */ |
146 | { | 146 | { |
147 | #include <fcntl.h> | 147 | #include <fcntl.h> |
@@ -162,7 +162,7 @@ bad: | |||
162 | keystr=buf; | 162 | keystr=buf; |
163 | } | 163 | } |
164 | 164 | ||
165 | MD5((unsigned char *)keystr,(unsigned long)strlen(keystr),md); | 165 | EVP_Digest((unsigned char *)keystr,(unsigned long)strlen(keystr),md,NULL,EVP_md5()); |
166 | memset(keystr,0,strlen(keystr)); | 166 | memset(keystr,0,strlen(keystr)); |
167 | RC4_set_key(&key,MD5_DIGEST_LENGTH,md); | 167 | RC4_set_key(&key,MD5_DIGEST_LENGTH,md); |
168 | 168 | ||
diff --git a/src/lib/libcrypto/rc4/rc4.h b/src/lib/libcrypto/rc4/rc4.h index 40251024a4..8722091f2e 100644 --- a/src/lib/libcrypto/rc4/rc4.h +++ b/src/lib/libcrypto/rc4/rc4.h | |||
@@ -59,7 +59,7 @@ | |||
59 | #ifndef HEADER_RC4_H | 59 | #ifndef HEADER_RC4_H |
60 | #define HEADER_RC4_H | 60 | #define HEADER_RC4_H |
61 | 61 | ||
62 | #ifdef NO_RC4 | 62 | #ifdef OPENSSL_NO_RC4 |
63 | #error RC4 is disabled. | 63 | #error RC4 is disabled. |
64 | #endif | 64 | #endif |
65 | 65 | ||
diff --git a/src/lib/libcrypto/rc4/rc4speed.c b/src/lib/libcrypto/rc4/rc4speed.c index b448f4a5c6..ced98c52df 100644 --- a/src/lib/libcrypto/rc4/rc4speed.c +++ b/src/lib/libcrypto/rc4/rc4speed.c | |||
@@ -59,7 +59,7 @@ | |||
59 | /* 11-Sep-92 Andrew Daviel Support for Silicon Graphics IRIX added */ | 59 | /* 11-Sep-92 Andrew Daviel Support for Silicon Graphics IRIX added */ |
60 | /* 06-Apr-92 Luke Brennan Support for VMS and add extra signal calls */ | 60 | /* 06-Apr-92 Luke Brennan Support for VMS and add extra signal calls */ |
61 | 61 | ||
62 | #if !defined(MSDOS) && (!defined(VMS) || defined(__DECC)) | 62 | #if !defined(OPENSSL_SYS_MSDOS) && (!defined(OPENSSL_SYS_VMS) || defined(__DECC)) && !defined(OPENSSL_SYS_MACOSX) |
63 | #define TIMES | 63 | #define TIMES |
64 | #endif | 64 | #endif |
65 | 65 | ||
@@ -82,7 +82,7 @@ OPENSSL_DECLARE_EXIT | |||
82 | The __TMS macro will show if it was. If it wasn't defined, we should | 82 | The __TMS macro will show if it was. If it wasn't defined, we should |
83 | undefine TIMES, since that tells the rest of the program how things | 83 | undefine TIMES, since that tells the rest of the program how things |
84 | should be handled. -- Richard Levitte */ | 84 | should be handled. -- Richard Levitte */ |
85 | #if defined(VMS) && defined(__DECC) && !defined(__TMS) | 85 | #if defined(OPENSSL_SYS_VMS_DECC) && !defined(__TMS) |
86 | #undef TIMES | 86 | #undef TIMES |
87 | #endif | 87 | #endif |
88 | 88 | ||
@@ -243,7 +243,7 @@ int main(int argc, char **argv) | |||
243 | printf("RC4 set_key per sec = %12.2f (%9.3fuS)\n",a,1.0e6/a); | 243 | printf("RC4 set_key per sec = %12.2f (%9.3fuS)\n",a,1.0e6/a); |
244 | printf("RC4 bytes per sec = %12.2f (%9.3fuS)\n",c,8.0e6/c); | 244 | printf("RC4 bytes per sec = %12.2f (%9.3fuS)\n",c,8.0e6/c); |
245 | exit(0); | 245 | exit(0); |
246 | #if defined(LINT) || defined(MSDOS) | 246 | #if defined(LINT) || defined(OPENSSL_SYS_MSDOS) |
247 | return(0); | 247 | return(0); |
248 | #endif | 248 | #endif |
249 | } | 249 | } |
diff --git a/src/lib/libcrypto/rc4/rc4test.c b/src/lib/libcrypto/rc4/rc4test.c index 3914eb6c38..a28d457c8d 100644 --- a/src/lib/libcrypto/rc4/rc4test.c +++ b/src/lib/libcrypto/rc4/rc4test.c | |||
@@ -60,7 +60,7 @@ | |||
60 | #include <stdlib.h> | 60 | #include <stdlib.h> |
61 | #include <string.h> | 61 | #include <string.h> |
62 | 62 | ||
63 | #ifdef NO_RC4 | 63 | #ifdef OPENSSL_NO_RC4 |
64 | int main(int argc, char *argv[]) | 64 | int main(int argc, char *argv[]) |
65 | { | 65 | { |
66 | printf("No RC4 support\n"); | 66 | printf("No RC4 support\n"); |