summaryrefslogtreecommitdiffstats
path: root/x11vnc/remote.c
diff options
context:
space:
mode:
authorrunge <runge>2006-02-25 05:10:37 +0000
committerrunge <runge>2006-02-25 05:10:37 +0000
commit79310af7e7a289d2baf1bdc295daefdcc76ecc0e (patch)
treeda68674a1beef5ce0ba807187657ca5fe215f68c /x11vnc/remote.c
parentb7773ea6e683e5fcfae5bf020828596c5f90b7d3 (diff)
downloadlibtdevnc-79310af7e7a289d2baf1bdc295daefdcc76ecc0e.tar.gz
libtdevnc-79310af7e7a289d2baf1bdc295daefdcc76ecc0e.zip
x11vnc: -unixpw and -stunnel. Add clipboard to input control.
Diffstat (limited to 'x11vnc/remote.c')
-rw-r--r--x11vnc/remote.c27
1 files changed, 15 insertions, 12 deletions
diff --git a/x11vnc/remote.c b/x11vnc/remote.c
index cb1fa7b..745da12 100644
--- a/x11vnc/remote.c
+++ b/x11vnc/remote.c
@@ -1141,18 +1141,6 @@ char *process_remote_cmd(char *cmd, int stringonly) {
first_conn_timeout = to;
rfbLog("remote_cmd: set -timeout to %d\n", -to);
-#if 0
- } else if (!strcmp(p, "filexfer")) {
- /* does this work after rfbInitServer? */
- if (query) {
- snprintf(buf, bufn, "ans=%s:%d", p, filexfer);
- goto qry;
- }
- rfbLog("remote_cmd: enabling -filexfer.\n");
- filexfer = 1;
- rfbRegisterTightVNCFileTransferExtension();
-#endif
-
} else if (!strcmp(p, "deny") || !strcmp(p, "lock")) {
if (query) {
snprintf(buf, bufn, "ans=%s:%d", p, deny_all);
@@ -1194,6 +1182,11 @@ char *process_remote_cmd(char *cmd, int stringonly) {
NONUL(allow_list));
goto qry;
}
+
+ if (unixpw) {
+ rfbLog("remote_cmd: cannot change allow in -unixpw\n");
+ goto done;
+ }
p += strlen("allow:");
if (allow_list && strchr(allow_list, '/')) {
rfbLog("remote_cmd: cannot use allow:host\n");
@@ -1278,6 +1271,10 @@ char *process_remote_cmd(char *cmd, int stringonly) {
snprintf(buf, bufn, "ans=%s:%d", p, !state);
goto qry;
}
+ if (unixpw) {
+ rfbLog("remote_cmd: cannot change localhost in -unixpw\n");
+ goto done;
+ }
if (allow_list) {
before = strdup(allow_list);
} else {
@@ -1318,6 +1315,10 @@ char *process_remote_cmd(char *cmd, int stringonly) {
NONUL(listen_str));
goto qry;
}
+ if (unixpw) {
+ rfbLog("remote_cmd: cannot change listen in -unixpw\n");
+ goto done;
+ }
if (listen_str) {
before = strdup(listen_str);
} else {
@@ -3666,6 +3667,8 @@ char *process_remote_cmd(char *cmd, int stringonly) {
snprintf(buf, bufn, "aro=%s:%d", p, no_external_cmds);
} else if (!strcmp(p, "passwdfile")) {
snprintf(buf, bufn, "aro=%s:%s", p, NONUL(passwdfile));
+ } else if (!strcmp(p, "unixpw")) {
+ snprintf(buf, bufn, "aro=%s:%d", p, unixpw);
} else if (!strcmp(p, "using_shm")) {
snprintf(buf, bufn, "aro=%s:%d", p, !using_shm);
} else if (!strcmp(p, "logfile") || !strcmp(p, "o")) {