Add missing ssl_sha1_clear()/ssl_md5_clear() calls
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user