Fix ssh/sshd failing in Windows 7 due to a flag use in cng_digest

Avoid using BCRYPT_HASH_REUSABLE_FLAG in cng_digest.c file which was
introduced in Windows 8 and not supported in previous OS like Windows 7.
This commit is contained in:
quamrulmina 2015-10-28 15:37:02 -05:00
parent e743b54a61
commit 3c6c8c3ca5

View File

@ -144,7 +144,7 @@ struct ssh_digest_ctx *
return NULL; return NULL;
} }
if ((hr = BCryptCreateHash(ret->cng_alg_handle, &(ret->hash_handle), NULL, 0, NULL, 0, BCRYPT_HASH_REUSABLE_FLAG)) != S_OK) if ((hr = BCryptCreateHash(ret->cng_alg_handle, &(ret->hash_handle), NULL, 0, NULL, 0, 0)) != S_OK)
{ {
BCryptCloseAlgorithmProvider(ret->cng_alg_handle, 0); BCryptCloseAlgorithmProvider(ret->cng_alg_handle, 0);
free(ret); free(ret);