Skip to contentSkip to conversation

vnc: fix vnc client authentication

GIT PULL Applied Gerd Hoffmann 3 participants 4 messages Jul 14, 2015

lore
Share & tools
lore
#0 lore raw

Hi,

Here comes the vnc queue with a single one-line fix.

please pull,
Gerd

The following changes since commit 6169b60285fe1ff730d840a49527e721bfb30899:

Update version for v2.4.0-rc0 release (2015-07-09 17:56:56 +0100)

are available in the git repository at:

git://git.kraxel.org/qemu tags/pull-vnc-20150714-1

for you to fetch changes up to a16951375f7669b7faf27f72ca753e25325c5179:

vnc: fix vnc client authentication (2015-07-14 15:33:48 +0200)

----------------------------------------------------------------
vnc: fix vnc client authentication

----------------------------------------------------------------
Wolfgang Bumiller (1):
vnc: fix vnc client authentication

 ui/vnc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#1 lore raw

From: Wolfgang Bumiller <[email protected]>

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.

---
 ui/vnc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ui/vnc.c +1 -1
index 94e4f19..1483958 100644
@@ -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,
Signature · 1 line
1.8.3.1
#2 lore raw
In reply to Gerd Hoffmann

2015-07-14 16:39 GMT+03:00 Gerd Hoffmann <[email protected]>:

Quoted 9 lines

Here comes the vnc queue with a single one-line fix.

please pull,
Gerd

The following changes since commit 6169b60285fe1ff730d840a49527e721bfb30899:

Update version for v2.4.0-rc0 release (2015-07-09 17:56:56 +0100)

Thanks! This vnc patch fix my issue.

Signature · 2 lines
Vasiliy Tolstov,
e-mail: [email protected]
#3 lore raw
In reply to Gerd Hoffmann
Quoted 13 lines · Gerd Hoffmann

Hi,

Here comes the vnc queue with a single one-line fix.

please pull,
Gerd

The following changes since commit 6169b60285fe1ff730d840a49527e721bfb30899:

Update version for v2.4.0-rc0 release (2015-07-09 17:56:56 +0100)

are available in the git repository at:

Quoted 8 lines

git://git.kraxel.org/qemu tags/pull-vnc-20150714-1

for you to fetch changes up to a16951375f7669b7faf27f72ca753e25325c5179:

vnc: fix vnc client authentication (2015-07-14 15:33:48 +0200)

----------------------------------------------------------------
vnc: fix vnc client authentication

Applied, thanks.

-- PMM