summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Maydell2015-07-14 15:52:45 +0200
committerPeter Maydell2015-07-14 15:52:45 +0200
commit0030ff40472b9ebf0e0595afbc8d7e428218c5d7 (patch)
tree123740ca87ca5a3dd2f0115a46ee825e334837ba
parentMerge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (diff)
parentvnc: fix vnc client authentication (diff)
downloadqemu-0030ff40472b9ebf0e0595afbc8d7e428218c5d7.tar.gz
qemu-0030ff40472b9ebf0e0595afbc8d7e428218c5d7.tar.xz
qemu-0030ff40472b9ebf0e0595afbc8d7e428218c5d7.zip
Merge remote-tracking branch 'remotes/kraxel/tags/pull-vnc-20150714-1' into staging
vnc: fix vnc client authentication # gpg: Signature made Tue Jul 14 14:38:48 2015 BST using RSA key ID D3E87138 # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" # gpg: aka "Gerd Hoffmann <gerd@kraxel.org>" # gpg: aka "Gerd Hoffmann (private) <kraxel@gmail.com>" * remotes/kraxel/tags/pull-vnc-20150714-1: vnc: fix vnc client authentication Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-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,