diff options
author | Darren Tucker <dtucker@zip.com.au> | 2012-06-30 20:05:02 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2012-06-30 20:05:02 +1000 |
commit | 14a9d2515bcb8438dd0052a0c705c09660069c55 (patch) | |
tree | 5ca8a7e5f8af319b93cec7e514c218456659e5e4 /key.c | |
parent | 3886f95d423629080decd010662f4c26edea7397 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |