From: igor@9lab.org
To: 9front@9front.org
Cc: igor@9lab.org
Subject: [9front] cmd/vnc: enable connecting to recent Darwin releases (patch)
Date: Wed, 22 Sep 2021 09:58:51 +0200 [thread overview]
Message-ID: <6828A0FC2EC9610DE01734E433618AE8@9lab.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1275 bytes --]
Vnc connections to recent Darwin releases fail as follows:
% vncv steve.9lab.home
vncv: authentication failure: unknown auth type 0x51e2124
The below inline patch enables connections to recent Darwin versions,
tested on MacOS Catalina and Big Sur. The patch is attached as well
to ease git/import.
While working on a fix I collected some information re: vnc connections
to MacOS from 9front here:
• https://9lab.org/plan9/vnc/
Finally, here is what a connection looks like after applying the patch:
% @{ramfs ; cd /tmp ; hget -o vnc.mp4 https://9lab.org/vid/plan9/vnc.mp4 && treason vnc.mp4}
<snip>
From: Igor Böhm <igor@9lab.org>
Date: Wed, 22 Sep 2021 06:36:54 +0000
Subject: [PATCH] vnc: enable connecting to Darwin
Tested on MacOS Catalina and Big Sur releases.
---
diff 61f37abf576a02c7f1e3561cfaba3c0457f55c9d de22c9e5d93042f458a1e6c4b7f8ef97c1f68c2a
--- a/sys/src/cmd/vnc/auth.c Fri Aug 27 16:13:11 2021
+++ b/sys/src/cmd/vnc/auth.c Wed Sep 22 08:36:54 2021
@@ -33,6 +33,8 @@
v->vers = 37;
else if(strncmp(msg, "RFB 003.008\n", VerLen) == 0)
v->vers = 38;
+ else if(strncmp(msg, "RFB 003.889\n", VerLen) == 0)
+ v->vers = 38; /* Darwin */
else /* RFC6143: Any other should be treated as 3.3. */
v->vers = 33;
</snip>
Cheers,
Igor
[-- Attachment #2: cmd.vnc.auth.c.patch --]
[-- Type: text/plain, Size: 636 bytes --]
From: Igor Böhm <igor@9lab.org>
Date: Wed, 22 Sep 2021 06:36:54 +0000
Subject: [PATCH] vnc: enable connecting to Darwin
Tested on MacOS Catalina and Big Sur releases.
---
diff 61f37abf576a02c7f1e3561cfaba3c0457f55c9d de22c9e5d93042f458a1e6c4b7f8ef97c1f68c2a
--- a/sys/src/cmd/vnc/auth.c Fri Aug 27 16:13:11 2021
+++ b/sys/src/cmd/vnc/auth.c Wed Sep 22 08:36:54 2021
@@ -33,6 +33,8 @@
v->vers = 37;
else if(strncmp(msg, "RFB 003.008\n", VerLen) == 0)
v->vers = 38;
+ else if(strncmp(msg, "RFB 003.889\n", VerLen) == 0)
+ v->vers = 38; /* Darwin */
else /* RFC6143: Any other should be treated as 3.3. */
v->vers = 33;
next reply other threads:[~2021-09-22 8:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-22 7:58 igor [this message]
2021-09-22 17:55 ` unobe
2021-09-22 18:03 ` ori
2021-09-25 21:04 ` igor
2021-09-22 18:40 ` unobe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6828A0FC2EC9610DE01734E433618AE8@9lab.org \
--to=igor@9lab.org \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).