5
0
mirror of git://git.proxmox.com/git/vncterm.git synced 2025-01-10 09:17:38 +03:00
Commit Graph

9 Commits

Author SHA1 Message Date
Dominik Csapak
3d0dbf7c0e bound check utf8 characters
since we load the fontmap from psf1 font files, we only have characters
for a maximum codepoint of 0xFFFF, so we save the char in an
unsigned short (16bit) but we decode up to 6 bytes of utf8
so we have to correctly bound check the assignment, else we can get
garbled characters on the terminal

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-09 10:10:28 +01:00
Dominik Csapak
f2c7aa6b08 also detect empty first parameter of escape codes
some escape codes can omit the first parameter
eg. ESC[;5H

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-09 10:05:02 +01:00
Fabian Grünbichler
ee05330200 use builtin gnutls' builtin NORMAL ciphers
instead of custom, outdated, insecure ones. NORMAL provides
a sane default.

note that this is only used for the legacy VNC anyway, since
the noVNC web console (re-)uses the HTTPS connection to the
API.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-02-03 08:28:26 +01:00
Fabian Grünbichler
b26ab9ab5a use builtin dh_params with newer gnutls
this is recommended instead of generating our own, but needs
a new enough gnutls version.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-02-03 08:27:58 +01:00
Fabian Grünbichler
df4b12152d bump DH_BITS to 2048
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-02-03 08:27:34 +01:00
Dietmar Maurer
5a90889767 fix argument parser
rfbPurgeArguments() moves arguments, so we need to decrement i after
purge, and use 'else if' (else we depend on argument order).

Also delete PVE_VNC_TICKET from environment (child don't need that).
2014-06-24 17:08:29 +02:00
Dietmar Maurer
07e8de89e1 new option -notls
We need this for novnc (encryption is done by websocket)
2014-06-23 13:09:45 +02:00
Dietmar Maurer
c9e46b9a7d do not create a process group with setsid
So that we can kill the whole task when started with fork_worker().
2011-09-13 10:55:40 +02:00
Dietmar Maurer
e6d0212c1e imported from svn 'vncterm/pve2' 2011-08-23 07:52:28 +02:00