Add missing ssl_sha1_clear()/ssl_md5_clear() calls

This commit is contained in:
matt335672
2022-01-20 16:43:00 +00:00
parent d853228c19
commit d02059d967
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -94,6 +94,7 @@ rfbHashEncryptBytes(char *bytes, const char *passwd)
/* create password hash from password */
passwd_bytes = g_strlen(passwd);
sha1 = ssl_sha1_info_create();
ssl_sha1_clear(sha1);
ssl_sha1_transform(sha1, "xrdp_vnc", 8);
ssl_sha1_transform(sha1, passwd, passwd_bytes);
ssl_sha1_transform(sha1, passwd, passwd_bytes);