]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
set the psk callback only if username/key were not supplied at command line.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 9 Feb 2011 22:30:22 +0000 (23:30 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 9 Feb 2011 22:30:22 +0000 (23:30 +0100)
src/cli.c

index 9ef43f96153338c541963b6d94af1b38ae8386e7..1576b739bc3c2c527312deb57d4bd68b6793e7bb 100644 (file)
--- a/src/cli.c
+++ b/src/cli.c
@@ -1292,7 +1292,8 @@ init_global_tls_stuff (void)
                    gnutls_strerror (ret));
         }
     }
-  gnutls_psk_set_client_credentials_function (psk_cred, psk_callback);
+  else
+    gnutls_psk_set_client_credentials_function (psk_cred, psk_callback);
 #endif
 
 #ifdef ENABLE_ANON