- (dtucker) [key.c] ifdef out sha256 key types on platforms that don't have
the required functions in libcrypto.
This commit is contained in:
parent
3886f95d42
commit
14a9d2515b
|
@ -44,6 +44,8 @@
|
||||||
from draft6 of the spec and will not be in the RFC when published. Patch
|
from draft6 of the spec and will not be in the RFC when published. Patch
|
||||||
from mdb at juniper net via bz#2023, ok markus.
|
from mdb at juniper net via bz#2023, ok markus.
|
||||||
- (dtucker) [myproposal.h] Remove trailing backslash to fix compile error.
|
- (dtucker) [myproposal.h] Remove trailing backslash to fix compile error.
|
||||||
|
- (dtucker) [key.c] ifdef out sha256 key types on platforms that don't have
|
||||||
|
the required functions in libcrypto.
|
||||||
|
|
||||||
20120628
|
20120628
|
||||||
- (dtucker) [openbsd-compat/getrrsetbyname-ldns.c] bz #2022: prevent null
|
- (dtucker) [openbsd-compat/getrrsetbyname-ldns.c] bz #2022: prevent null
|
||||||
|
|
2
key.c
2
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:
|
case SSH_FP_SHA1:
|
||||||
md = EVP_sha1();
|
md = EVP_sha1();
|
||||||
break;
|
break;
|
||||||
|
#ifdef HAVE_EVP_SHA256
|
||||||
case SSH_FP_SHA256:
|
case SSH_FP_SHA256:
|
||||||
md = EVP_sha256();
|
md = EVP_sha256();
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
fatal("key_fingerprint_raw: bad digest type %d",
|
fatal("key_fingerprint_raw: bad digest type %d",
|
||||||
dgst_type);
|
dgst_type);
|
||||||
|
|
Loading…
Reference in New Issue