From d0556a4c93ad6caa9d4e4b1ed11522988d6c631f Mon Sep 17 00:00:00 2001 From: dtucker Date: Sat, 30 Jun 2012 10:05:02 +0000 Subject: - (dtucker) [key.c] ifdef out sha256 key types on platforms that don't have the required functions in libcrypto. --- key.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'key.c') diff --git a/key.c b/key.c index 8ef0b7e3..7e909970 100644 --- a/key.c +++ b/key.c @@ -342,9 +342,11 @@ key_fingerprint_raw(Key *k, enum fp_type dgst_type, u_int *dgst_raw_length) case SSH_FP_SHA1: md = EVP_sha1(); break; +#ifdef HAVE_EVP_SHA256 case SSH_FP_SHA256: md = EVP_sha256(); break; +#endif default: fatal("key_fingerprint_raw: bad digest type %d", dgst_type); -- cgit v1.2.1