summaryrefslogtreecommitdiff
path: root/key.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2012-06-30 20:05:02 +1000
committerDarren Tucker <dtucker@zip.com.au>2012-06-30 20:05:02 +1000
commit14a9d2515bcb8438dd0052a0c705c09660069c55 (patch)
tree5ca8a7e5f8af319b93cec7e514c218456659e5e4 /key.c
parent3886f95d423629080decd010662f4c26edea7397 (diff)
- (dtucker) [key.c] ifdef out sha256 key types on platforms that don't have
the required functions in libcrypto.
Diffstat (limited to 'key.c')
-rw-r--r--key.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/key.c b/key.c
index 8ef0b7e3c..7e9099703 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)
342 case SSH_FP_SHA1: 342 case SSH_FP_SHA1:
343 md = EVP_sha1(); 343 md = EVP_sha1();
344 break; 344 break;
345#ifdef HAVE_EVP_SHA256
345 case SSH_FP_SHA256: 346 case SSH_FP_SHA256:
346 md = EVP_sha256(); 347 md = EVP_sha256();
347 break; 348 break;
349#endif
348 default: 350 default:
349 fatal("key_fingerprint_raw: bad digest type %d", 351 fatal("key_fingerprint_raw: bad digest type %d",
350 dgst_type); 352 dgst_type);