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/bf | |
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/bf')
-rw-r--r-- | src/lib/libcrypto/bf/Makefile | 45 | ||||
-rw-r--r-- | src/lib/libcrypto/bf/bf_opts.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/bf/bfspeed.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/bf/bftest.c | 4 |
4 files changed, 28 insertions, 27 deletions
diff --git a/src/lib/libcrypto/bf/Makefile b/src/lib/libcrypto/bf/Makefile index 42e2c050f8..8441954a8d 100644 --- a/src/lib/libcrypto/bf/Makefile +++ b/src/lib/libcrypto/bf/Makefile | |||
@@ -8,11 +8,6 @@ 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 | ||
@@ -22,6 +17,7 @@ BF_ENC= bf_enc.o | |||
22 | 17 | ||
23 | CFLAGS= $(INCLUDES) $(CFLAG) | 18 | CFLAGS= $(INCLUDES) $(CFLAG) |
24 | ASFLAGS= $(INCLUDES) $(ASFLAG) | 19 | ASFLAGS= $(INCLUDES) $(ASFLAG) |
20 | AFLAGS= $(ASFLAGS) | ||
25 | 21 | ||
26 | GENERAL=Makefile | 22 | GENERAL=Makefile |
27 | TEST=bftest.c | 23 | TEST=bftest.c |
@@ -48,20 +44,15 @@ lib: $(LIBOBJ) | |||
48 | $(RANLIB) $(LIB) || echo Never mind. | 44 | $(RANLIB) $(LIB) || echo Never mind. |
49 | @touch lib | 45 | @touch lib |
50 | 46 | ||
51 | # elf | 47 | # ELF |
52 | asm/bx86-elf.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | 48 | bx86-elf.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl |
53 | (cd asm; $(PERL) bf-586.pl elf $(CFLAGS) $(PROCESSOR) > bx86-elf.s) | 49 | (cd asm; $(PERL) bf-586.pl elf $(CFLAGS) $(PROCESSOR) > ../$@) |
54 | 50 | # COFF | |
51 | bx86-cof.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
52 | (cd asm; $(PERL) bf-586.pl coff $(CFLAGS) $(PROCESSOR) > ../$@) | ||
55 | # a.out | 53 | # a.out |
56 | asm/bx86-out.o: asm/bx86unix.cpp | 54 | bx86-out.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl |
57 | $(CPP) -DOUT asm/bx86unix.cpp | as -o asm/bx86-out.o | 55 | (cd asm; $(PERL) bf-586.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@) |
58 | |||
59 | # bsdi | ||
60 | asm/bx86bsdi.o: asm/bx86unix.cpp | ||
61 | $(CPP) -DBSDI asm/bx86unix.cpp | sed 's/ :/:/' | as -o asm/bx86bsdi.o | ||
62 | |||
63 | asm/bx86unix.cpp: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl | ||
64 | (cd asm; $(PERL) bf-586.pl cpp $(PROCESSOR) >bx86unix.cpp) | ||
65 | 56 | ||
66 | files: | 57 | files: |
67 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | 58 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO |
@@ -71,9 +62,11 @@ links: | |||
71 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | 62 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) |
72 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | 63 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
73 | 64 | ||
74 | install: installs | 65 | # We need to use force because 'install' matches 'INSTALL' on case |
75 | 66 | # insensitive systems | |
76 | installs: | 67 | FRC.install: |
68 | install: FRC.install | ||
69 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
77 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | 70 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ |
78 | do \ | 71 | do \ |
79 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | 72 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
@@ -89,6 +82,7 @@ lint: | |||
89 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 82 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
90 | 83 | ||
91 | depend: | 84 | depend: |
85 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | ||
92 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | 86 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) |
93 | 87 | ||
94 | dclean: | 88 | dclean: |
@@ -96,7 +90,7 @@ dclean: | |||
96 | mv -f Makefile.new $(MAKEFILE) | 90 | mv -f Makefile.new $(MAKEFILE) |
97 | 91 | ||
98 | clean: | 92 | clean: |
99 | rm -f asm/bx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | 93 | rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
100 | 94 | ||
101 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 95 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
102 | 96 | ||
@@ -109,8 +103,5 @@ bf_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h | |||
109 | bf_enc.o: ../../include/openssl/opensslconf.h bf_enc.c bf_locl.h | 103 | bf_enc.o: ../../include/openssl/opensslconf.h bf_enc.c bf_locl.h |
110 | bf_ofb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h | 104 | bf_ofb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h |
111 | bf_ofb64.o: ../../include/openssl/opensslconf.h bf_locl.h bf_ofb64.c | 105 | bf_ofb64.o: ../../include/openssl/opensslconf.h bf_locl.h bf_ofb64.c |
112 | bf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/crypto.h | 106 | bf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h |
113 | bf_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/fips.h | 107 | bf_skey.o: ../../include/openssl/opensslconf.h bf_locl.h bf_pi.h bf_skey.c |
114 | bf_skey.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
115 | bf_skey.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
116 | bf_skey.o: ../../include/openssl/symhacks.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 171dada2ca..1721bb99b4 100644 --- a/src/lib/libcrypto/bf/bf_opts.c +++ b/src/lib/libcrypto/bf/bf_opts.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/bf/bfspeed.c b/src/lib/libcrypto/bf/bfspeed.c index f346af64f3..c41ef3b403 100644 --- a/src/lib/libcrypto/bf/bfspeed.c +++ b/src/lib/libcrypto/bf/bfspeed.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/bf/bftest.c b/src/lib/libcrypto/bf/bftest.c index 24d526b14b..97e6634d37 100644 --- a/src/lib/libcrypto/bf/bftest.c +++ b/src/lib/libcrypto/bf/bftest.c | |||
@@ -62,6 +62,7 @@ | |||
62 | #include <stdio.h> | 62 | #include <stdio.h> |
63 | #include <string.h> | 63 | #include <string.h> |
64 | #include <stdlib.h> | 64 | #include <stdlib.h> |
65 | #include <openssl/opensslconf.h> /* To see if OPENSSL_NO_BF is defined */ | ||
65 | 66 | ||
66 | #include "../e_os.h" | 67 | #include "../e_os.h" |
67 | 68 | ||
@@ -277,6 +278,9 @@ int main(int argc, char *argv[]) | |||
277 | else | 278 | else |
278 | ret=test(); | 279 | ret=test(); |
279 | 280 | ||
281 | #ifdef OPENSSL_SYS_NETWARE | ||
282 | if (ret) printf("ERROR: %d\n", ret); | ||
283 | #endif | ||
280 | EXIT(ret); | 284 | EXIT(ret); |
281 | return(0); | 285 | return(0); |
282 | } | 286 | } |