Commit a1695137 authored by Wolfgang Bumiller's avatar Wolfgang Bumiller Committed by Gerd Hoffmann
Browse files

vnc: fix vnc client authentication



Commit 800567a6 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 in 800567a6.)
Changed it to qcrypto_cipher_encrypt now.

Signed-off-by: default avatarWolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 6169b602
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,