diff options
Diffstat (limited to 'key.c')
-rw-r--r-- | key.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: key.c,v 1.98 2011/10/18 04:58:26 djm Exp $ */ | 1 | /* $OpenBSD: key.c,v 1.99 2012/05/23 03:28:28 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * read_bignum(): | 3 | * read_bignum(): |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -342,6 +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 | ||
346 | case SSH_FP_SHA256: | ||
347 | md = EVP_sha256(); | ||
348 | break; | ||
349 | #endif | ||
345 | default: | 350 | default: |
346 | fatal("key_fingerprint_raw: bad digest type %d", | 351 | fatal("key_fingerprint_raw: bad digest type %d", |
347 | dgst_type); | 352 | dgst_type); |