1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Merge connshare socket naming fix from 'pre-0.75'.

This commit is contained in:
Simon Tatham 2021-05-02 08:19:28 +01:00
commit f36a871ad3

View File

@ -69,7 +69,11 @@ char *capi_obfuscate_string(const char *realname)
* We don't want to give away the length of the hostname either,
* so having got it back out of CryptProtectMemory we now hash it.
*/
hash_simple(&ssh_sha256, make_ptrlen(cryptdata, cryptlen), digest);
{
ssh_hash *h = ssh_hash_new(&ssh_sha256);
put_string(h, cryptdata, cryptlen);
ssh_hash_final(h, digest);
}
sfree(cryptdata);