diff options
author | djm <> | 2009-01-09 12:14:09 +0000 |
---|---|---|
committer | djm <> | 2009-01-09 12:14:09 +0000 |
commit | 76dd4d55fdccad54d20608e7caf577b9d67b216f (patch) | |
tree | 9b645adc5cf0aa0820e1501ee5c6f2c41c454e7c /src/lib/libcrypto/sha | |
parent | f1625f274acf5dcd5601f6cb5e29e233b2a441a3 (diff) | |
download | openbsd-76dd4d55fdccad54d20608e7caf577b9d67b216f.tar.gz openbsd-76dd4d55fdccad54d20608e7caf577b9d67b216f.tar.bz2 openbsd-76dd4d55fdccad54d20608e7caf577b9d67b216f.zip |
import openssl-0.9.8j
Diffstat (limited to 'src/lib/libcrypto/sha')
-rw-r--r-- | src/lib/libcrypto/sha/Makefile | 35 | ||||
-rw-r--r-- | src/lib/libcrypto/sha/sha_dgst.c | 6 |
2 files changed, 27 insertions, 14 deletions
diff --git a/src/lib/libcrypto/sha/Makefile b/src/lib/libcrypto/sha/Makefile index ac64fb61d3..f4741b9ee6 100644 --- a/src/lib/libcrypto/sha/Makefile +++ b/src/lib/libcrypto/sha/Makefile | |||
@@ -38,7 +38,7 @@ top: | |||
38 | all: lib | 38 | all: lib |
39 | 39 | ||
40 | lib: $(LIBOBJ) | 40 | lib: $(LIBOBJ) |
41 | $(AR) $(LIB) $(LIBOBJ) | 41 | $(ARX) $(LIB) $(LIBOBJ) |
42 | $(RANLIB) $(LIB) || echo Never mind. | 42 | $(RANLIB) $(LIB) || echo Never mind. |
43 | @touch lib | 43 | @touch lib |
44 | 44 | ||
@@ -59,7 +59,7 @@ s512sse2-out.s: asm/sha512-sse2.pl ../perlasm/x86asm.pl | |||
59 | (cd asm; $(PERL) sha512-sse2.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@) | 59 | (cd asm; $(PERL) sha512-sse2.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@) |
60 | 60 | ||
61 | sha1-ia64.s: asm/sha1-ia64.pl | 61 | sha1-ia64.s: asm/sha1-ia64.pl |
62 | (cd asm; $(PERL) sha1-ia64.pl $(CFLAGS) ) > $@ | 62 | (cd asm; $(PERL) sha1-ia64.pl ../$@ $(CFLAGS)) |
63 | sha256-ia64.s: asm/sha512-ia64.pl | 63 | sha256-ia64.s: asm/sha512-ia64.pl |
64 | (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS)) | 64 | (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS)) |
65 | sha512-ia64.s: asm/sha512-ia64.pl | 65 | sha512-ia64.s: asm/sha512-ia64.pl |
@@ -113,24 +113,31 @@ sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | |||
113 | sha1_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | 113 | sha1_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
114 | sha1_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 114 | sha1_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h |
115 | sha1_one.o: sha1_one.c | 115 | sha1_one.o: sha1_one.c |
116 | sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | 116 | sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/fips.h |
117 | sha1dgst.o: ../../include/openssl/opensslconf.h | ||
117 | sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h | 118 | sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h |
118 | sha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h | 119 | sha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h |
119 | sha256.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | 120 | sha256.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h |
120 | sha256.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | 121 | sha256.o: ../../include/openssl/fips.h ../../include/openssl/opensslconf.h |
121 | sha256.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | 122 | sha256.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
122 | sha256.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 123 | sha256.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
123 | sha256.o: ../../include/openssl/symhacks.h ../md32_common.h sha256.c | 124 | sha256.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h |
125 | sha256.o: ../md32_common.h sha256.c | ||
124 | sha512.o: ../../e_os.h ../../include/openssl/bio.h | 126 | sha512.o: ../../e_os.h ../../include/openssl/bio.h |
125 | sha512.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | 127 | sha512.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
126 | sha512.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 128 | sha512.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
127 | sha512.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | 129 | sha512.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h |
128 | sha512.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | 130 | sha512.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
129 | sha512.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | 131 | sha512.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h |
130 | sha512.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 132 | sha512.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
131 | sha512.o: ../cryptlib.h sha512.c | 133 | sha512.o: ../../include/openssl/symhacks.h ../cryptlib.h sha512.c |
132 | sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | 134 | sha_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h |
133 | sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h | 135 | sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
136 | sha_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | ||
137 | sha_dgst.o: ../../include/openssl/opensslconf.h | ||
138 | sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
139 | sha_dgst.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
140 | sha_dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
134 | sha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h | 141 | sha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h |
135 | sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | 142 | sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h |
136 | sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | 143 | sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
diff --git a/src/lib/libcrypto/sha/sha_dgst.c b/src/lib/libcrypto/sha/sha_dgst.c index 70eb56032c..598f4d721a 100644 --- a/src/lib/libcrypto/sha/sha_dgst.c +++ b/src/lib/libcrypto/sha/sha_dgst.c | |||
@@ -57,6 +57,12 @@ | |||
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <openssl/opensslconf.h> | 59 | #include <openssl/opensslconf.h> |
60 | #include <openssl/crypto.h> | ||
61 | #ifdef OPENSSL_FIPS | ||
62 | #include <openssl/fips.h> | ||
63 | #endif | ||
64 | |||
65 | #include <openssl/err.h> | ||
60 | #if !defined(OPENSSL_NO_SHA0) && !defined(OPENSSL_NO_SHA) | 66 | #if !defined(OPENSSL_NO_SHA0) && !defined(OPENSSL_NO_SHA) |
61 | 67 | ||
62 | #undef SHA_1 | 68 | #undef SHA_1 |