summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cast
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/cast')
-rw-r--r--src/lib/libcrypto/cast/Makefile.ssl26
-rw-r--r--src/lib/libcrypto/cast/cast.h2
-rw-r--r--src/lib/libcrypto/cast/cast_lcl.h12
-rw-r--r--src/lib/libcrypto/cast/cast_spd.c6
-rw-r--r--src/lib/libcrypto/cast/castopts.c6
-rw-r--r--src/lib/libcrypto/cast/casttest.c2
6 files changed, 30 insertions, 24 deletions
diff --git a/src/lib/libcrypto/cast/Makefile.ssl b/src/lib/libcrypto/cast/Makefile.ssl
index 1f8b898f7c..a2bf56276b 100644
--- a/src/lib/libcrypto/cast/Makefile.ssl
+++ b/src/lib/libcrypto/cast/Makefile.ssl
@@ -12,7 +12,8 @@ INSTALL_PREFIX=
12OPENSSLDIR= /usr/local/ssl 12OPENSSLDIR= /usr/local/ssl
13INSTALLTOP=/usr/local/ssl 13INSTALLTOP=/usr/local/ssl
14MAKE= make -f Makefile.ssl 14MAKE= make -f Makefile.ssl
15MAKEDEPEND= $(TOP)/util/domd $(TOP) 15MAKEDEPPROG= makedepend
16MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
16MAKEFILE= Makefile.ssl 17MAKEFILE= Makefile.ssl
17AR= ar r 18AR= ar r
18 19
@@ -47,8 +48,7 @@ all: lib
47 48
48lib: $(LIBOBJ) 49lib: $(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
@@ -108,18 +108,18 @@ clean:
108 108
109# DO NOT DELETE THIS LINE -- make depend depends on it. 109# DO NOT DELETE THIS LINE -- make depend depends on it.
110 110
111c_cfb64.o: ../../include/openssl/cast.h ../../include/openssl/e_os.h 111c_cfb64.o: ../../e_os.h ../../include/openssl/cast.h
112c_cfb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 112c_cfb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
113c_cfb64.o: cast_lcl.h 113c_cfb64.o: c_cfb64.c cast_lcl.h
114c_ecb.o: ../../include/openssl/cast.h ../../include/openssl/e_os.h 114c_ecb.o: ../../e_os.h ../../include/openssl/cast.h
115c_ecb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 115c_ecb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
116c_ecb.o: ../../include/openssl/opensslv.h cast_lcl.h 116c_ecb.o: ../../include/openssl/opensslv.h c_ecb.c cast_lcl.h
117c_enc.o: ../../include/openssl/cast.h ../../include/openssl/e_os.h 117c_enc.o: ../../e_os.h ../../include/openssl/cast.h
118c_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 118c_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
119c_enc.o: cast_lcl.h 119c_enc.o: c_enc.c cast_lcl.h
120c_ofb64.o: ../../include/openssl/cast.h ../../include/openssl/e_os.h 120c_ofb64.o: ../../e_os.h ../../include/openssl/cast.h
121c_ofb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 121c_ofb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
122c_ofb64.o: cast_lcl.h 122c_ofb64.o: c_ofb64.c cast_lcl.h
123c_skey.o: ../../include/openssl/cast.h ../../include/openssl/e_os.h 123c_skey.o: ../../e_os.h ../../include/openssl/cast.h
124c_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 124c_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
125c_skey.o: cast_lcl.h cast_s.h 125c_skey.o: c_skey.c cast_lcl.h cast_s.h
diff --git a/src/lib/libcrypto/cast/cast.h b/src/lib/libcrypto/cast/cast.h
index e24e133099..b28e4e4f3b 100644
--- a/src/lib/libcrypto/cast/cast.h
+++ b/src/lib/libcrypto/cast/cast.h
@@ -63,7 +63,7 @@
63extern "C" { 63extern "C" {
64#endif 64#endif
65 65
66#ifdef NO_CAST 66#ifdef OPENSSL_NO_CAST
67#error CAST is disabled. 67#error CAST is disabled.
68#endif 68#endif
69 69
diff --git a/src/lib/libcrypto/cast/cast_lcl.h b/src/lib/libcrypto/cast/cast_lcl.h
index 5fab8a43f6..37f41cc6a4 100644
--- a/src/lib/libcrypto/cast/cast_lcl.h
+++ b/src/lib/libcrypto/cast/cast_lcl.h
@@ -56,12 +56,18 @@
56 * [including the GNU Public Licence.] 56 * [including the GNU Public Licence.]
57 */ 57 */
58 58
59#ifdef WIN32 59
60#include "e_os.h"
61
62#ifdef OPENSSL_SYS_WIN32
60#include <stdlib.h> 63#include <stdlib.h>
61#endif 64#endif
62 65
63 66
64#include "openssl/e_os.h" /* OPENSSL_EXTERN */ 67#ifdef OPENSSL_BUILD_SHLIBCRYPTO
68# undef OPENSSL_EXTERN
69# define OPENSSL_EXTERN OPENSSL_EXPORT
70#endif
65 71
66#undef c2l 72#undef c2l
67#define c2l(c,l) (l =((unsigned long)(*((c)++))) , \ 73#define c2l(c,l) (l =((unsigned long)(*((c)++))) , \
@@ -151,7 +157,7 @@
151 *((c)++)=(unsigned char)(((l)>> 8L)&0xff), \ 157 *((c)++)=(unsigned char)(((l)>> 8L)&0xff), \
152 *((c)++)=(unsigned char)(((l) )&0xff)) 158 *((c)++)=(unsigned char)(((l) )&0xff))
153 159
154#if defined(WIN32) && defined(_MSC_VER) 160#if defined(OPENSSL_SYS_WIN32) && defined(_MSC_VER)
155#define ROTL(a,n) (_lrotl(a,n)) 161#define ROTL(a,n) (_lrotl(a,n))
156#else 162#else
157#define ROTL(a,n) ((((a)<<(n))&0xffffffffL)|((a)>>(32-(n)))) 163#define ROTL(a,n) ((((a)<<(n))&0xffffffffL)|((a)>>(32-(n))))
diff --git a/src/lib/libcrypto/cast/cast_spd.c b/src/lib/libcrypto/cast/cast_spd.c
index 0af915cf20..76abf50d98 100644
--- a/src/lib/libcrypto/cast/cast_spd.c
+++ b/src/lib/libcrypto/cast/cast_spd.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("CAST raw ecb bytes per sec = %12.2f (%9.3fuS)\n",b,8.0e6/b); 268 printf("CAST raw ecb bytes per sec = %12.2f (%9.3fuS)\n",b,8.0e6/b);
269 printf("CAST cbc bytes per sec = %12.2f (%9.3fuS)\n",c,8.0e6/c); 269 printf("CAST cbc bytes per sec = %12.2f (%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/cast/castopts.c b/src/lib/libcrypto/cast/castopts.c
index c783796610..1b858d153b 100644
--- a/src/lib/libcrypto/cast/castopts.c
+++ b/src/lib/libcrypto/cast/castopts.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))
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
@@ -332,7 +332,7 @@ int main(int argc, char **argv)
332 break; 332 break;
333 } 333 }
334 exit(0); 334 exit(0);
335#if defined(LINT) || defined(MSDOS) 335#if defined(LINT) || defined(OPENSSL_SYS_MSDOS)
336 return(0); 336 return(0);
337#endif 337#endif
338 } 338 }
diff --git a/src/lib/libcrypto/cast/casttest.c b/src/lib/libcrypto/cast/casttest.c
index ab2aeac606..099e790886 100644
--- a/src/lib/libcrypto/cast/casttest.c
+++ b/src/lib/libcrypto/cast/casttest.c
@@ -60,7 +60,7 @@
60#include <string.h> 60#include <string.h>
61#include <stdlib.h> 61#include <stdlib.h>
62 62
63#ifdef NO_CAST 63#ifdef OPENSSL_NO_CAST
64int main(int argc, char *argv[]) 64int main(int argc, char *argv[])
65{ 65{
66 printf("No CAST support\n"); 66 printf("No CAST support\n");