diff options
| author | djm <> | 2008-09-06 12:15:54 +0000 |
|---|---|---|
| committer | djm <> | 2008-09-06 12:15:54 +0000 |
| commit | f1625f274acf5dcd5601f6cb5e29e233b2a441a3 (patch) | |
| tree | 44899ddfbef8f24aacbea50086c041c1b150f6d6 /src/lib/libcrypto/cast | |
| parent | 4f828b924f54507141fb95ebe49dfcd261945e85 (diff) | |
| download | openbsd-f1625f274acf5dcd5601f6cb5e29e233b2a441a3.tar.gz openbsd-f1625f274acf5dcd5601f6cb5e29e233b2a441a3.tar.bz2 openbsd-f1625f274acf5dcd5601f6cb5e29e233b2a441a3.zip | |
import of OpenSSL 0.9.8h
Diffstat (limited to 'src/lib/libcrypto/cast')
| -rw-r--r-- | src/lib/libcrypto/cast/Makefile | 41 | ||||
| -rw-r--r-- | src/lib/libcrypto/cast/cast_spd.c | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/cast/castopts.c | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/cast/casttest.c | 1 |
4 files changed, 20 insertions, 28 deletions
diff --git a/src/lib/libcrypto/cast/Makefile b/src/lib/libcrypto/cast/Makefile index b388f6271c..149956ee90 100644 --- a/src/lib/libcrypto/cast/Makefile +++ b/src/lib/libcrypto/cast/Makefile | |||
| @@ -8,23 +8,14 @@ CC= cc | |||
| 8 | CPP= $(CC) -E | 8 | CPP= $(CC) -E |
| 9 | INCLUDES= | 9 | INCLUDES= |
| 10 | CFLAG=-g | 10 | CFLAG=-g |
| 11 | INSTALL_PREFIX= | ||
| 12 | OPENSSLDIR= /usr/local/ssl | ||
| 13 | INSTALLTOP=/usr/local/ssl | ||
| 14 | MAKEDEPPROG= makedepend | ||
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 16 | MAKEFILE= Makefile | 11 | MAKEFILE= Makefile |
| 17 | AR= ar r | 12 | AR= ar r |
| 18 | 13 | ||
| 19 | CAST_ENC=c_enc.o | 14 | CAST_ENC=c_enc.o |
| 20 | # or use | ||
| 21 | #CAST_ENC=asm/cx86-elf.o | ||
| 22 | #CAST_ENC=asm/cx86-out.o | ||
| 23 | #CAST_ENC=asm/cx86-sol.o | ||
| 24 | #CAST_ENC=asm/cx86bdsi.o | ||
| 25 | 15 | ||
| 26 | CFLAGS= $(INCLUDES) $(CFLAG) | 16 | CFLAGS= $(INCLUDES) $(CFLAG) |
| 27 | ASFLAGS= $(INCLUDES) $(ASFLAG) | 17 | ASFLAGS= $(INCLUDES) $(ASFLAG) |
| 18 | AFLAGS= $(ASFLAGS) | ||
| 28 | 19 | ||
| 29 | GENERAL=Makefile | 20 | GENERAL=Makefile |
| 30 | TEST=casttest.c | 21 | TEST=casttest.c |
| @@ -51,20 +42,15 @@ lib: $(LIBOBJ) | |||
| 51 | $(RANLIB) $(LIB) || echo Never mind. | 42 | $(RANLIB) $(LIB) || echo Never mind. |
| 52 | @touch lib | 43 | @touch lib |
| 53 | 44 | ||
| 54 | # elf | 45 | # ELF |
| 55 | asm/cx86-elf.s: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | 46 | cx86-elf.s: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl |
| 56 | (cd asm; $(PERL) cast-586.pl elf $(CLAGS) $(PROCESSOR) > cx86-elf.s) | 47 | (cd asm; $(PERL) cast-586.pl elf $(CLAGS) $(PROCESSOR) > ../$@) |
| 57 | 48 | # COFF | |
| 49 | cx86-cof.s: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 50 | (cd asm; $(PERL) cast-586.pl coff $(CLAGS) $(PROCESSOR) > ../$@) | ||
| 58 | # a.out | 51 | # a.out |
| 59 | asm/cx86-out.o: asm/cx86unix.cpp | 52 | cx86-out.s: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl |
| 60 | $(CPP) -DOUT asm/cx86unix.cpp | as -o asm/cx86-out.o | 53 | (cd asm; $(PERL) cast-586.pl a.out $(CLAGS) $(PROCESSOR) > ../$@) |
| 61 | |||
| 62 | # bsdi | ||
| 63 | asm/cx86bsdi.o: asm/cx86unix.cpp | ||
| 64 | $(CPP) -DBSDI asm/cx86unix.cpp | sed 's/ :/:/' | as -o asm/cx86bsdi.o | ||
| 65 | |||
| 66 | asm/cx86unix.cpp: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
| 67 | (cd asm; $(PERL) cast-586.pl cpp $(PROCESSOR) >cx86unix.cpp) | ||
| 68 | 54 | ||
| 69 | files: | 55 | files: |
| 70 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | 56 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO |
| @@ -75,6 +61,7 @@ links: | |||
| 75 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | 61 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
| 76 | 62 | ||
| 77 | install: | 63 | install: |
| 64 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
| 78 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | 65 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ |
| 79 | do \ | 66 | do \ |
| 80 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | 67 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
| @@ -90,6 +77,7 @@ lint: | |||
| 90 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 77 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
| 91 | 78 | ||
| 92 | depend: | 79 | depend: |
| 80 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | ||
| 93 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | 81 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) |
| 94 | 82 | ||
| 95 | dclean: | 83 | dclean: |
| @@ -97,7 +85,7 @@ dclean: | |||
| 97 | mv -f Makefile.new $(MAKEFILE) | 85 | mv -f Makefile.new $(MAKEFILE) |
| 98 | 86 | ||
| 99 | clean: | 87 | clean: |
| 100 | rm -f asm/cx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | 88 | rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
| 101 | 89 | ||
| 102 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 90 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
| 103 | 91 | ||
| @@ -114,8 +102,5 @@ c_ofb64.o: ../../e_os.h ../../include/openssl/cast.h | |||
| 114 | c_ofb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | 102 | c_ofb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h |
| 115 | c_ofb64.o: c_ofb64.c cast_lcl.h | 103 | c_ofb64.o: c_ofb64.c cast_lcl.h |
| 116 | c_skey.o: ../../e_os.h ../../include/openssl/cast.h | 104 | c_skey.o: ../../e_os.h ../../include/openssl/cast.h |
| 117 | c_skey.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | 105 | c_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h |
| 118 | c_skey.o: ../../include/openssl/fips.h ../../include/openssl/opensslconf.h | ||
| 119 | c_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 120 | c_skey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 121 | c_skey.o: c_skey.c cast_lcl.h cast_s.h | 106 | c_skey.o: c_skey.c cast_lcl.h cast_s.h |
diff --git a/src/lib/libcrypto/cast/cast_spd.c b/src/lib/libcrypto/cast/cast_spd.c index 76abf50d98..d650af475c 100644 --- a/src/lib/libcrypto/cast/cast_spd.c +++ b/src/lib/libcrypto/cast/cast_spd.c | |||
| @@ -69,7 +69,10 @@ | |||
| 69 | #include OPENSSL_UNISTD_IO | 69 | #include OPENSSL_UNISTD_IO |
| 70 | OPENSSL_DECLARE_EXIT | 70 | OPENSSL_DECLARE_EXIT |
| 71 | 71 | ||
| 72 | #ifndef OPENSSL_SYS_NETWARE | ||
| 72 | #include <signal.h> | 73 | #include <signal.h> |
| 74 | #endif | ||
| 75 | |||
| 73 | #ifndef _IRIX | 76 | #ifndef _IRIX |
| 74 | #include <time.h> | 77 | #include <time.h> |
| 75 | #endif | 78 | #endif |
diff --git a/src/lib/libcrypto/cast/castopts.c b/src/lib/libcrypto/cast/castopts.c index 1b858d153b..33b2c7b06f 100644 --- a/src/lib/libcrypto/cast/castopts.c +++ b/src/lib/libcrypto/cast/castopts.c | |||
| @@ -69,7 +69,10 @@ | |||
| 69 | #include OPENSSL_UNISTD_IO | 69 | #include OPENSSL_UNISTD_IO |
| 70 | OPENSSL_DECLARE_EXIT | 70 | OPENSSL_DECLARE_EXIT |
| 71 | 71 | ||
| 72 | #ifndef OPENSSL_SYS_NETWARE | ||
| 72 | #include <signal.h> | 73 | #include <signal.h> |
| 74 | #endif | ||
| 75 | |||
| 73 | #ifndef _IRIX | 76 | #ifndef _IRIX |
| 74 | #include <time.h> | 77 | #include <time.h> |
| 75 | #endif | 78 | #endif |
diff --git a/src/lib/libcrypto/cast/casttest.c b/src/lib/libcrypto/cast/casttest.c index 83e5a16c73..0d020d6975 100644 --- a/src/lib/libcrypto/cast/casttest.c +++ b/src/lib/libcrypto/cast/casttest.c | |||
| @@ -59,6 +59,7 @@ | |||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | #include <string.h> | 60 | #include <string.h> |
| 61 | #include <stdlib.h> | 61 | #include <stdlib.h> |
| 62 | #include <openssl/opensslconf.h> /* To see if OPENSSL_NO_CAST is defined */ | ||
| 62 | 63 | ||
| 63 | #include "../e_os.h" | 64 | #include "../e_os.h" |
| 64 | 65 | ||
