summaryrefslogtreecommitdiffstats
path: root/digest-openssl.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2014-07-03 11:54:19 +1000
committerDamien Miller <djm@mindrot.org>2014-07-03 11:54:19 +1000
commit8da0fa24934501909408327298097b1629b89eaa (patch)
tree115bfe30337558e0113302e30ebfd1bc2bc814a9 /digest-openssl.c
parent81309c857dd0dbc0a1245a16d621c490ad48cfbb (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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/digest-openssl.c b/digest-openssl.c
index de038013..7ec6bd26 100644
--- a/digest-openssl.c
+++ b/digest-openssl.c
@@ -45,7 +45,9 @@ struct ssh_digest {
/* NB. Indexed directly by algorithm number */
const struct ssh_digest digests[] = {
{ SSH_DIGEST_MD5, "MD5", 16, EVP_md5 },
+#ifdef HAVE_EVP_RIPEMD160 /* XXX replace with local if missing */
{ SSH_DIGEST_RIPEMD160, "RIPEMD160", 20, EVP_ripemd160 },
+#endif
{ SSH_DIGEST_SHA1, "SHA1", 20, EVP_sha1 },
#ifdef HAVE_EVP_SHA256 /* XXX replace with local if missing */
{ SSH_DIGEST_SHA256, "SHA256", 32, EVP_sha256 },