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