diff options
author | Darren Tucker <dtucker@dtucker.net> | 2019-07-23 21:51:22 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-07-23 22:06:24 +1000 |
commit | 11cba2a4523fda447e2554ea457484655bedc831 (patch) | |
tree | 93ec07a9e0db784b0a729eb339d74a5a2c40ea9d /digest-openssl.c | |
parent | 09159594a3bbd363429ee6fafde57ce77986dd7c (diff) |
Re-apply portability changes to current sha2.{c,h}.
Rather than attempt to apply 14 years' worth of changes to OpenBSD's sha2
I imported the current versions directly then re-applied the portability
changes. This also allowed re-syncing digest-libc.c against upstream.
Diffstat (limited to 'digest-openssl.c')
-rw-r--r-- | digest-openssl.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/digest-openssl.c b/digest-openssl.c index da7ed72bc..11efbf7c0 100644 --- a/digest-openssl.c +++ b/digest-openssl.c | |||
@@ -34,12 +34,16 @@ | |||
34 | 34 | ||
35 | #ifndef HAVE_EVP_RIPEMD160 | 35 | #ifndef HAVE_EVP_RIPEMD160 |
36 | # define EVP_ripemd160 NULL | 36 | # define EVP_ripemd160 NULL |
37 | #endif /* HAVE_EVP_RIPEMD160 */ | 37 | #endif |
38 | #ifndef HAVE_EVP_SHA256 | 38 | #ifndef HAVE_EVP_SHA256 |
39 | # define EVP_sha256 NULL | 39 | # define EVP_sha256 NULL |
40 | #endif | ||
41 | #ifndef HAVE_EVP_SHA384 | ||
40 | # define EVP_sha384 NULL | 42 | # define EVP_sha384 NULL |
43 | #endif | ||
44 | #ifndef HAVE_EVP_SHA512 | ||
41 | # define EVP_sha512 NULL | 45 | # define EVP_sha512 NULL |
42 | #endif /* HAVE_EVP_SHA256 */ | 46 | #endif |
43 | 47 | ||
44 | struct ssh_digest_ctx { | 48 | struct ssh_digest_ctx { |
45 | int alg; | 49 | int alg; |