summaryrefslogtreecommitdiffstats
path: root/x11vnc/connections.c
diff options
context:
space:
mode:
authorrunge <runge>2006-09-24 00:08:42 +0000
committerrunge <runge>2006-09-24 00:08:42 +0000
commit6f47809af2e44e28d9f97c11b26726e62ee2654f (patch)
treed2b3913ee11b81f7cf65cbe0b1bf31182e5c0e72 /x11vnc/connections.c
parentb9688bb38d00bbc77a54464dabc7aa6313404f0c (diff)
downloadlibvncserver-6f47809af2e44e28d9f97c11b26726e62ee2654f.zip
libvncserver-6f47809af2e44e28d9f97c11b26726e62ee2654f.tar.gz
x11vnc: improve SSL Java viewer, cleanup -unixpw code.
Diffstat (limited to 'x11vnc/connections.c')
-rw-r--r--x11vnc/connections.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/x11vnc/connections.c b/x11vnc/connections.c
index 5ef0f9f..5ceb510 100644
--- a/x11vnc/connections.c
+++ b/x11vnc/connections.c
@@ -1048,7 +1048,7 @@ static unsigned char t2x2_bits[] = {
char *ip = addr;
char *type = "accept";
if (unixpw && strstr(userhost, "UNIX:") != userhost) {
- type = "unixpw";
+ type = "UNIXPW";
if (openssl_last_ip) {
ip = openssl_last_ip;
}
@@ -2007,7 +2007,6 @@ enum rfbNewClientAction new_client(rfbClientPtr client) {
}
clients_served++;
-if (getenv("NEW_CLIENT")) fprintf(stderr, "new_client: %s %d\n", client->host, clients_served);
if (use_openssl || use_stunnel) {
if (! ssl_initialized) {
@@ -2016,7 +2015,7 @@ if (getenv("NEW_CLIENT")) fprintf(stderr, "new_client: %s %d\n", client->host, c
return(RFB_CLIENT_REFUSE);
}
}
- if (unixpw && unixpw_in_progress) {
+ if (unixpw_in_progress) {
rfbLog("denying additional client: %s during -unixpw login.\n",
client->host);
return(RFB_CLIENT_REFUSE);
@@ -2052,7 +2051,6 @@ if (getenv("NEW_CLIENT")) fprintf(stderr, "new_client: %s %d\n", client->host, c
cd->ssl_helper_pid = 0;
if (use_openssl && openssl_last_helper_pid) {
-if (0) fprintf(stderr, "SET ssl_helper_pid: %d\n", openssl_last_helper_pid);
cd->ssl_helper_pid = openssl_last_helper_pid;
openssl_last_helper_pid = 0;
}
@@ -2086,7 +2084,6 @@ if (0) fprintf(stderr, "SET ssl_helper_pid: %d\n", openssl_last_helper_pid);
cd->uid = clients_served;
-
client->clientGoneHook = client_gone;
if (client_count) {
@@ -2131,8 +2128,10 @@ if (0) fprintf(stderr, "SET ssl_helper_pid: %d\n", openssl_last_helper_pid);
client->viewOnly = FALSE;
}
unixpw_last_try_time = time(NULL);
+
unixpw_screen(1);
unixpw_keystroke(0, 0, 1);
+
if (!unixpw_in_rfbPE) {
rfbLog("new client: %s in non-unixpw_in_rfbPE.\n",
client->host);
OpenPOWER on IntegriCloud