vncv: enable connecting to Darwin hosts

Tested on MacOS Catalina and Big Sur releases.

Update man page to highlight weak encryption of vnc, recommending to
tunnel via ssh (thanks unobe).
This commit is contained in:
Igor Böhm 2021-09-25 20:40:47 +00:00 committed by Ori Bernstein
parent c9b48aec54
commit b638114186
2 changed files with 8 additions and 3 deletions

View file

@ -201,9 +201,12 @@ print verbose output to standard error.
If the remote frame buffer is larger than the local screen,
only the upper left corner can be accessed.
.PP
.I Vncs
and
.I vncv
encryption is not secure. It's advisable to tunnel through
ssh or some other secure protocol.
.PP
.I Vncv
does no verification of the TLS certificate presented
by the server.
.PP
.I Vncv
supports only version 3.3 of the RFB protocol.

View file

@ -33,6 +33,8 @@ vnchandshake(Vnc *v)
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;