From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 18322 invoked from network); 22 Sep 2021 08:22:04 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 22 Sep 2021 08:22:04 -0000 Received: from mail.9lab.org ([168.119.8.41]) by 4ess; Wed Sep 22 04:14:27 -0400 2021 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9lab.org; s=20210803; t=1632297653; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=6uaiGSDZ4IEhAynkNvWwqZXmnXiEYM8601yerY6stp8=; b=vD4QDRkH2BX/fMJj/XQK5DM6hSGxmNH98XbgF+jxHYvVNkJ89OpEF4Cu3PXQRm/VfHXVJ9 8Gbf5QlElNb6O9XFVXTmhe0n1eP+JVi9IKrjoNr+X24pkiXKlJInDKorAODiahqN0zFCQt XKtoX/Z8ztJMoDDsjNF62R06aYZZdaA= Received: from pjw (host-185-64-155-70.ecsnet.at [185.64.155.70]) by mail.9lab.org (OpenSMTPD) with ESMTPSA id b5cfcb78 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Wed, 22 Sep 2021 10:00:53 +0200 (CEST) Message-ID: <6828A0FC2EC9610DE01734E433618AE8@9lab.org> To: 9front@9front.org CC: igor@9lab.org Date: Wed, 22 Sep 2021 09:58:51 +0200 From: igor@9lab.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-nqcdpfjrpoknzwfcyqbmpfqatl" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: deep-learning reduce/map firewall Subject: [9front] cmd/vnc: enable connecting to recent Darwin releases (patch) Reply-To: 9front@9front.org Precedence: bulk This is a multi-part message in MIME format. --upas-nqcdpfjrpoknzwfcyqbmpfqatl Content-Disposition: inline Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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} From: Igor Böhm 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; Cheers, Igor --upas-nqcdpfjrpoknzwfcyqbmpfqatl Content-Disposition: attachment; filename=cmd.vnc.auth.c.patch Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit From: Igor Böhm 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; --upas-nqcdpfjrpoknzwfcyqbmpfqatl--