[gtk-vnc] Add debug logs wrt credential gathering



commit 8e14f8a00c486ac4a133fcd190526e73406d9cb6
Author: Daniel P. Berrangé <berrange redhat com>
Date:   Wed Jan 31 11:11:09 2018 +0000

    Add debug logs wrt credential gathering
    
    Signed-off-by: Daniel P. Berrangé <berrange redhat com>

 src/vncconnection.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/vncconnection.c b/src/vncconnection.c
index 7a7ee8a..c8ffc1e 100644
--- a/src/vncconnection.c
+++ b/src/vncconnection.c
@@ -3539,6 +3539,8 @@ static gboolean vnc_connection_gather_credentials(VncConnection *conn)
 {
     VncConnectionPrivate *priv = conn->priv;
 
+    VNC_DEBUG("Checking if credentials are needed");
+
     if (priv->coroutine_stop)
         return FALSE;
 
@@ -3556,16 +3558,19 @@ static gboolean vnc_connection_gather_credentials(VncConnection *conn)
             g_value_init(&username, VNC_TYPE_CONNECTION_CREDENTIAL);
             g_value_set_enum(&username, VNC_CONNECTION_CREDENTIAL_USERNAME);
             authCred = g_value_array_append(authCred, &username);
+            VNC_DEBUG("Want a username");
         }
         if (priv->want_cred_password) {
             g_value_init(&password, VNC_TYPE_CONNECTION_CREDENTIAL);
             g_value_set_enum(&password, VNC_CONNECTION_CREDENTIAL_PASSWORD);
             authCred = g_value_array_append(authCred, &password);
+            VNC_DEBUG("Want a password");
         }
         if (priv->want_cred_x509) {
             g_value_init(&clientname, VNC_TYPE_CONNECTION_CREDENTIAL);
             g_value_set_enum(&clientname, VNC_CONNECTION_CREDENTIAL_CLIENTNAME);
             authCred = g_value_array_append(authCred, &clientname);
+            VNC_DEBUG("Want a TLS clientname");
         }
 
         sigdata.params.authCred = authCred;
@@ -3579,6 +3584,8 @@ static gboolean vnc_connection_gather_credentials(VncConnection *conn)
         VNC_DEBUG("Waiting for missing credentials");
         g_condition_wait(vnc_connection_has_credentials, conn);
         VNC_DEBUG("Got all credentials");
+    } else {
+        VNC_DEBUG("No credentials required");
     }
     return !vnc_connection_has_error(conn);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]