diff options
Diffstat (limited to 'src/serv.c')
-rw-r--r-- | src/serv.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/serv.c b/src/serv.c index 2edaca30e6..c03c191fc5 100644 --- a/src/serv.c +++ b/src/serv.c @@ -987,6 +987,17 @@ main (int argc, char **argv) GERR (ret); } + if (info.psk_hint) + { + ret = gnutls_psk_set_server_credentials_hint (psk_cred, + info.psk_hint); + if (ret) + { + fprintf (stderr, "Error setting PSK identity hint.\n"); + GERR (ret); + } + } + gnutls_psk_set_server_params_function (psk_cred, get_params); } #endif @@ -1143,7 +1154,7 @@ main (int argc, char **argv) addr_ntop ((struct sockaddr *)&client_address, calen, topbuf, sizeof (topbuf)), get_port (&client_address)); - print_info (j->tls_session, NULL); + print_info (j->tls_session, NULL, 1); } j->handshake_ok = 1; } @@ -1240,7 +1251,7 @@ main (int argc, char **argv) topbuf, sizeof (topbuf)), get_port (&client_address)); - print_info (j->tls_session, NULL); + print_info (j->tls_session, NULL, 1); } j->handshake_ok = 1; } |