summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-05-15 14:03:08 +0200
committerSimon Josefsson <simon@josefsson.org>2008-05-15 14:37:03 +0200
commit3866e9c773d8a946d110d0b932225d9eb3df5bc3 (patch)
tree5069a88b5c81d9b1b0d199c5dea22c43edbb1297 /src
parent5f4e6a0dab6a8dc3ae125a6ca776d210fb9a3b07 (diff)
downloadgnutls-3866e9c773d8a946d110d0b932225d9eb3df5bc3.tar.gz
Fix so that PSK authentication works.
Diffstat (limited to 'src')
-rw-r--r--src/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli.c b/src/cli.c
index 674f346768..fc18065163 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -1052,7 +1052,7 @@ init_global_tls_stuff (void)
#endif
#ifdef ENABLE_PSK
- if (psk_username && !psk_key.data)
+ if (psk_username && psk_key.data)
{
/* SRP stuff */
if (gnutls_psk_allocate_client_credentials (&psk_cred) < 0)