From 8bef644d17f62ea6daf7459b863f05de187966fe Mon Sep 17 00:00:00 2001 From: runge Date: Wed, 10 Dec 2008 17:12:27 +0000 Subject: x11vnc: 0.9.6 release. Some strtok bugfixes. rename -tlsvnc to -anontls. Disable ssl caching. No cert creation prompting in inetd or bg modes. waitpid a bit more carefully on ssl helpers. Tune ssl initial timeouts. Let -create user specify starting X display. fix -rfbport prompt gui for older tk. -sslonly option. Error if no -ssl with related options. -rand option. -ssl implies -ssl SAVE --- x11vnc/x11vnc.c | 107 +++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 94 insertions(+), 13 deletions(-) (limited to 'x11vnc/x11vnc.c') diff --git a/x11vnc/x11vnc.c b/x11vnc/x11vnc.c index 8775ddf..b654ec8 100644 --- a/x11vnc/x11vnc.c +++ b/x11vnc/x11vnc.c @@ -243,6 +243,7 @@ void set_redir_properties(void); #define TSMAX 32 #define TSSTK 16 + void terminal_services(char *list) { int i, j, n = 0, db = 1; char *p, *q, *r, *str = strdup(list); @@ -257,6 +258,10 @@ void terminal_services(char *list) { char num[32]; time_t last_clean = time(NULL); + if (getenv("TS_REDIR_DEBUG")) { + db = 2; + } + if (! dpy) { return; } @@ -268,6 +273,8 @@ void terminal_services(char *list) { PropModeReplace, (unsigned char *)list, strlen(list)); XSync(dpy, False); } + if (db) fprintf(stderr, "TS_REDIR_LIST Atom: %d.\n"); + for (i=0; i 0 && !use_openssl) { + rfbLog("SSL: Error: you did not supply the '-ssl ...' option even\n"); + rfbLog("SSL: though you supplied one of these related options:\n"); + rfbLog("SSL: -sslonly, -sslverify, -sslCRL, -vencrypt, -anontls,\n"); + rfbLog("SSL: -dhparams, -https, -http_ssl, or -httpsredir.\n"); + rfbLog("SSL: Restart with, for example, '-ssl SAVE' on the cmd line.\n"); + rfbLog("SSL: See the '-ssl' x11vnc -help description for more info.\n"); + if (!getenv("X11VNC_FORCE_NO_OPENSSL")) { + exit(1); + } + } + if (unixpw) { if (inetd) { use_stunnel = 0; @@ -5049,12 +5130,12 @@ if (0) fprintf(stderr, "XA: %s\n", getenv("XAUTHORITY")); initialize_speeds(); - if (speeds_read_rate_measured > 100) { - /* framebuffer read is fast at > 100 MB/sec */ + if (speeds_read_rate_measured > 80) { + /* framebuffer read is fast at > 80 MB/sec */ if (! got_waitms) { waitms /= 2; - if (waitms < 10) { - waitms = 10; + if (waitms < 5) { + waitms = 5; } if (!quiet) { rfbLog("fast read: reset wait ms to: %d\n", waitms); -- cgit v1.2.1