aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorWolfgang Bumiller <w.bumiller@proxmox.com>2015-07-14 14:51:40 +0200
committerGerd Hoffmann <kraxel@redhat.com>2015-07-14 15:33:48 +0200
commita16951375f7669b7faf27f72ca753e25325c5179 (patch)
tree1306e2afab1b86e3d204d7f2a928d7e72a5359b2 /ui
parent6169b60285fe1ff730d840a49527e721bfb30899 (diff)
vnc: fix vnc client authentication
Commit 800567a61 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 800567a61.) Changed it to qcrypto_cipher_encrypt now. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/vnc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/vnc.c b/ui/vnc.c
index 94e4f19a60..1483958c45 100644
--- a/ui/vnc.c
+++ b/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,