hostkey.c: Fix compiling error when OPENSSL_NO_MD5 is defined

Closes #32
This commit is contained in:
nasacj
2015-07-10 09:28:18 +08:00
committed by Daniel Stenberg
parent f4b5947d6d
commit 9af7eb48dc

View File

@@ -235,6 +235,10 @@ hostkey_method_ssh_rsa_dtor(LIBSSH2_SESSION * session, void **abstract)
return 0;
}
#ifdef OPENSSL_NO_MD5
#define MD5_DIGEST_LENGTH 16
#endif
static const LIBSSH2_HOSTKEY_METHOD hostkey_method_ssh_rsa = {
"ssh-rsa",
MD5_DIGEST_LENGTH,