diff options
author | Damien Miller <djm@mindrot.org> | 2014-07-03 11:54:19 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-07-03 11:54:19 +1000 |
commit | 8da0fa24934501909408327298097b1629b89eaa (patch) | |
tree | 115bfe30337558e0113302e30ebfd1bc2bc814a9 /digest-openssl.c | |
parent | 81309c857dd0dbc0a1245a16d621c490ad48cfbb (diff) |
- (djm) [digest-openssl.c configure.ac] Disable RIPEMD160 if libcrypto
doesn't support it.
Diffstat (limited to 'digest-openssl.c')
-rw-r--r-- | digest-openssl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/digest-openssl.c b/digest-openssl.c index de0380135..7ec6bd260 100644 --- a/digest-openssl.c +++ b/digest-openssl.c | |||
@@ -45,7 +45,9 @@ struct ssh_digest { | |||
45 | /* NB. Indexed directly by algorithm number */ | 45 | /* NB. Indexed directly by algorithm number */ |
46 | const struct ssh_digest digests[] = { | 46 | const struct ssh_digest digests[] = { |
47 | { SSH_DIGEST_MD5, "MD5", 16, EVP_md5 }, | 47 | { SSH_DIGEST_MD5, "MD5", 16, EVP_md5 }, |
48 | #ifdef HAVE_EVP_RIPEMD160 /* XXX replace with local if missing */ | ||
48 | { SSH_DIGEST_RIPEMD160, "RIPEMD160", 20, EVP_ripemd160 }, | 49 | { SSH_DIGEST_RIPEMD160, "RIPEMD160", 20, EVP_ripemd160 }, |
50 | #endif | ||
49 | { SSH_DIGEST_SHA1, "SHA1", 20, EVP_sha1 }, | 51 | { SSH_DIGEST_SHA1, "SHA1", 20, EVP_sha1 }, |
50 | #ifdef HAVE_EVP_SHA256 /* XXX replace with local if missing */ | 52 | #ifdef HAVE_EVP_SHA256 /* XXX replace with local if missing */ |
51 | { SSH_DIGEST_SHA256, "SHA256", 32, EVP_sha256 }, | 53 | { SSH_DIGEST_SHA256, "SHA256", 32, EVP_sha256 }, |