From 6f47809af2e44e28d9f97c11b26726e62ee2654f Mon Sep 17 00:00:00 2001 From: runge Date: Sun, 24 Sep 2006 00:08:42 +0000 Subject: x11vnc: improve SSL Java viewer, cleanup -unixpw code. --- x11vnc/connections.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'x11vnc/connections.c') 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); -- cgit v1.2.3