summaryrefslogtreecommitdiff
path: root/src/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common.c b/src/common.c
index aec6966299..13cf549a8f 100644
--- a/src/common.c
+++ b/src/common.c
@@ -548,8 +548,12 @@ print_info (gnutls_session_t session, const char *hostname)
#endif
#ifdef ENABLE_PSK
case GNUTLS_CRD_PSK:
- /* This should be only called in server
- * side.
+ /* This returns NULL in server side.
+ */
+ if (gnutls_psk_client_get_hint (session) != NULL)
+ printf ("- PSK authentication. PSK hint '%s'\n",
+ gnutls_psk_client_get_hint (session));
+ /* This returns NULL in client side.
*/
if (gnutls_psk_server_get_username (session) != NULL)
printf ("- PSK authentication. Connected as '%s'\n",