From eda3469efbeaa62cf708c598441f87d0a5f51686 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Mon, 27 Aug 2007 16:37:53 +0200 Subject: Support GNUTLS_CRD_PSK and GNUTLS_CRD_IA. --- doc/examples/ex-session-info.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/examples/ex-session-info.c b/doc/examples/ex-session-info.c index 8bc4d0af02..a7b56fca9e 100644 --- a/doc/examples/ex-session-info.c +++ b/doc/examples/ex-session-info.c @@ -31,11 +31,22 @@ print_info (gnutls_session_t session) cred = gnutls_auth_get_type (session); switch (cred) { + case GNUTLS_CRD_IA: + printf ("- TLS/IA session\n"); + break; + + case GNUTLS_CRD_SRP: printf ("- SRP session with username %s\n", gnutls_srp_server_get_username (session)); break; + case GNUTLS_CRD_PSK: + if (gnutls_psk_server_get_username (session) != NULL) + printf ("- PSK authentication. Connected as '%s'\n", + gnutls_psk_server_get_username (session)); + break; + case GNUTLS_CRD_ANON: /* anonymous authentication */ printf ("- Anonymous DH using prime of %d bits\n", -- cgit v1.2.1