diff options
Diffstat (limited to 'src/lib/libcrypto/bf')
-rw-r--r-- | src/lib/libcrypto/bf/Makefile.ssl | 27 | ||||
-rw-r--r-- | src/lib/libcrypto/bf/bf_opts.c | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/bf/bf_skey.c | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/bf/bfspeed.c | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/bf/bftest.c | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/bf/blowfish.h | 8 |
6 files changed, 27 insertions, 24 deletions
diff --git a/src/lib/libcrypto/bf/Makefile.ssl b/src/lib/libcrypto/bf/Makefile.ssl index 9205ee7901..b045f54686 100644 --- a/src/lib/libcrypto/bf/Makefile.ssl +++ b/src/lib/libcrypto/bf/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 | ||
@@ -44,8 +45,7 @@ all: lib | |||
44 | 45 | ||
45 | lib: $(LIBOBJ) | 46 | lib: $(LIBOBJ) |
46 | $(AR) $(LIB) $(LIBOBJ) | 47 | $(AR) $(LIB) $(LIBOBJ) |
47 | @echo You may get an error following this line. Please ignore. | 48 | $(RANLIB) $(LIB) || echo Never mind. |
48 | - $(RANLIB) $(LIB) | ||
49 | @touch lib | 49 | @touch lib |
50 | 50 | ||
51 | # elf | 51 | # elf |
@@ -107,13 +107,14 @@ clean: | |||
107 | 107 | ||
108 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 108 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
109 | 109 | ||
110 | bf_cfb64.o: ../../include/openssl/blowfish.h | 110 | bf_cfb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h |
111 | bf_cfb64.o: ../../include/openssl/opensslconf.h bf_locl.h | 111 | bf_cfb64.o: ../../include/openssl/opensslconf.h bf_cfb64.c bf_locl.h |
112 | bf_ecb.o: ../../include/openssl/blowfish.h ../../include/openssl/opensslconf.h | 112 | bf_ecb.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h |
113 | bf_ecb.o: ../../include/openssl/opensslv.h bf_locl.h | 113 | bf_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
114 | bf_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/opensslconf.h | 114 | bf_ecb.o: bf_ecb.c bf_locl.h |
115 | bf_enc.o: bf_locl.h | 115 | bf_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h |
116 | bf_ofb64.o: ../../include/openssl/blowfish.h | 116 | bf_enc.o: ../../include/openssl/opensslconf.h bf_enc.c bf_locl.h |
117 | bf_ofb64.o: ../../include/openssl/opensslconf.h bf_locl.h | 117 | bf_ofb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h |
118 | bf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/opensslconf.h | 118 | bf_ofb64.o: ../../include/openssl/opensslconf.h bf_locl.h bf_ofb64.c |
119 | bf_skey.o: bf_locl.h bf_pi.h | 119 | bf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h |
120 | bf_skey.o: ../../include/openssl/opensslconf.h bf_locl.h bf_pi.h bf_skey.c | ||
diff --git a/src/lib/libcrypto/bf/bf_opts.c b/src/lib/libcrypto/bf/bf_opts.c index bbe32b28c9..171dada2ca 100644 --- a/src/lib/libcrypto/bf/bf_opts.c +++ b/src/lib/libcrypto/bf/bf_opts.c | |||
@@ -59,7 +59,7 @@ | |||
59 | /* define PART1, PART2, PART3 or PART4 to build only with a few of the options. | 59 | /* define PART1, PART2, PART3 or PART4 to build only with a few of the options. |
60 | * This is for machines with 64k code segment size restrictions. */ | 60 | * This is for machines with 64k code segment size restrictions. */ |
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 | ||
@@ -322,7 +322,7 @@ int main(int argc, char **argv) | |||
322 | break; | 322 | break; |
323 | } | 323 | } |
324 | exit(0); | 324 | exit(0); |
325 | #if defined(LINT) || defined(MSDOS) | 325 | #if defined(LINT) || defined(OPENSSL_SYS_MSDOS) |
326 | return(0); | 326 | return(0); |
327 | #endif | 327 | #endif |
328 | } | 328 | } |
diff --git a/src/lib/libcrypto/bf/bf_skey.c b/src/lib/libcrypto/bf/bf_skey.c index 4d6a232fe0..3673cdee6e 100644 --- a/src/lib/libcrypto/bf/bf_skey.c +++ b/src/lib/libcrypto/bf/bf_skey.c | |||
@@ -69,7 +69,7 @@ void BF_set_key(BF_KEY *key, int len, const unsigned char *data) | |||
69 | const unsigned char *d,*end; | 69 | const unsigned char *d,*end; |
70 | 70 | ||
71 | 71 | ||
72 | memcpy((char *)key,(char *)&bf_init,sizeof(BF_KEY)); | 72 | memcpy(key,&bf_init,sizeof(BF_KEY)); |
73 | p=key->P; | 73 | p=key->P; |
74 | 74 | ||
75 | if (len > ((BF_ROUNDS+2)*4)) len=(BF_ROUNDS+2)*4; | 75 | if (len > ((BF_ROUNDS+2)*4)) len=(BF_ROUNDS+2)*4; |
diff --git a/src/lib/libcrypto/bf/bfspeed.c b/src/lib/libcrypto/bf/bfspeed.c index ecc9dff4e4..f346af64f3 100644 --- a/src/lib/libcrypto/bf/bfspeed.c +++ b/src/lib/libcrypto/bf/bfspeed.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 | ||
@@ -268,7 +268,7 @@ int main(int argc, char **argv) | |||
268 | printf("Blowfish raw ecb bytes per sec = %12.3f (%9.3fuS)\n",b,8.0e6/b); | 268 | printf("Blowfish raw ecb bytes per sec = %12.3f (%9.3fuS)\n",b,8.0e6/b); |
269 | printf("Blowfish cbc bytes per sec = %12.3f (%9.3fuS)\n",c,8.0e6/c); | 269 | printf("Blowfish cbc bytes per sec = %12.3f (%9.3fuS)\n",c,8.0e6/c); |
270 | exit(0); | 270 | exit(0); |
271 | #if defined(LINT) || defined(MSDOS) | 271 | #if defined(LINT) || defined(OPENSSL_SYS_MSDOS) |
272 | return(0); | 272 | return(0); |
273 | #endif | 273 | #endif |
274 | } | 274 | } |
diff --git a/src/lib/libcrypto/bf/bftest.c b/src/lib/libcrypto/bf/bftest.c index cf67cadefd..09895f2542 100644 --- a/src/lib/libcrypto/bf/bftest.c +++ b/src/lib/libcrypto/bf/bftest.c | |||
@@ -63,7 +63,7 @@ | |||
63 | #include <string.h> | 63 | #include <string.h> |
64 | #include <stdlib.h> | 64 | #include <stdlib.h> |
65 | 65 | ||
66 | #ifdef NO_BF | 66 | #ifdef OPENSSL_NO_BF |
67 | int main(int argc, char *argv[]) | 67 | int main(int argc, char *argv[]) |
68 | { | 68 | { |
69 | printf("No BF support\n"); | 69 | printf("No BF support\n"); |
diff --git a/src/lib/libcrypto/bf/blowfish.h b/src/lib/libcrypto/bf/blowfish.h index 78acfd63b4..cd49e85ab2 100644 --- a/src/lib/libcrypto/bf/blowfish.h +++ b/src/lib/libcrypto/bf/blowfish.h | |||
@@ -59,11 +59,13 @@ | |||
59 | #ifndef HEADER_BLOWFISH_H | 59 | #ifndef HEADER_BLOWFISH_H |
60 | #define HEADER_BLOWFISH_H | 60 | #define HEADER_BLOWFISH_H |
61 | 61 | ||
62 | #include <openssl/e_os2.h> | ||
63 | |||
62 | #ifdef __cplusplus | 64 | #ifdef __cplusplus |
63 | extern "C" { | 65 | extern "C" { |
64 | #endif | 66 | #endif |
65 | 67 | ||
66 | #ifdef NO_BF | 68 | #ifdef OPENSSL_NO_BF |
67 | #error BF is disabled. | 69 | #error BF is disabled. |
68 | #endif | 70 | #endif |
69 | 71 | ||
@@ -77,9 +79,9 @@ extern "C" { | |||
77 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 79 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
78 | */ | 80 | */ |
79 | 81 | ||
80 | #if defined(WIN16) || defined(__LP32__) | 82 | #if defined(OPENSSL_SYS_WIN16) || defined(__LP32__) |
81 | #define BF_LONG unsigned long | 83 | #define BF_LONG unsigned long |
82 | #elif defined(_CRAY) || defined(__ILP64__) | 84 | #elif defined(OPENSSL_SYS_CRAY) || defined(__ILP64__) |
83 | #define BF_LONG unsigned long | 85 | #define BF_LONG unsigned long |
84 | #define BF_LONG_LOG2 3 | 86 | #define BF_LONG_LOG2 3 |
85 | /* | 87 | /* |