mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
vnc: fix vnc client authentication
Commit800567a61
updated the code to the generic crypto API and mixed up encrypt and decrypt functions in procotol_client_auth_vnc. (Used to be: deskey(key, EN0) which encrypts, and was changed to qcrypto_cipher_decrypt in800567a61
.) Changed it to qcrypto_cipher_encrypt now. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
6169b60285
commit
a16951375f
1 changed files with 1 additions and 1 deletions
2
ui/vnc.c
2
ui/vnc.c
|
@ -2551,7 +2551,7 @@ static int protocol_client_auth_vnc(VncState *vs, uint8_t *data, size_t len)
|
|||
goto reject;
|
||||
}
|
||||
|
||||
if (qcrypto_cipher_decrypt(cipher,
|
||||
if (qcrypto_cipher_encrypt(cipher,
|
||||
vs->challenge,
|
||||
response,
|
||||
VNC_AUTH_CHALLENGE_SIZE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue