9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] cmd/vnc: enable connecting to recent Darwin releases (patch)
@ 2021-09-22  7:58 igor
  2021-09-22 17:55 ` unobe
  2021-09-22 18:40 ` unobe
  0 siblings, 2 replies; 5+ messages in thread
From: igor @ 2021-09-22  7:58 UTC (permalink / raw)
  To: 9front; +Cc: igor

[-- 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;
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-09-25 22:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-22  7:58 [9front] cmd/vnc: enable connecting to recent Darwin releases (patch) igor
2021-09-22 17:55 ` unobe
2021-09-22 18:03   ` ori
2021-09-25 21:04     ` igor
2021-09-22 18:40 ` unobe

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).