Skip to content

Commit 3c6c8c3

Browse files
committed
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.
1 parent e743b54 commit 3c6c8c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/win32/win32compat/cng_digest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ struct ssh_digest_ctx *
144144
return NULL;
145145
}
146146

147-
if ((hr = BCryptCreateHash(ret->cng_alg_handle, &(ret->hash_handle), NULL, 0, NULL, 0, BCRYPT_HASH_REUSABLE_FLAG)) != S_OK)
147+
if ((hr = BCryptCreateHash(ret->cng_alg_handle, &(ret->hash_handle), NULL, 0, NULL, 0, 0)) != S_OK)
148148
{
149149
BCryptCloseAlgorithmProvider(ret->cng_alg_handle, 0);
150150
free(ret);

0 commit comments

Comments
 (0)