summaryrefslogtreecommitdiff
path: root/doc/examples/ex-cert-select-pkcs11.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/ex-cert-select-pkcs11.c')
-rw-r--r--doc/examples/ex-cert-select-pkcs11.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/examples/ex-cert-select-pkcs11.c b/doc/examples/ex-cert-select-pkcs11.c
index a437a51507..fb902be891 100644
--- a/doc/examples/ex-cert-select-pkcs11.c
+++ b/doc/examples/ex-cert-select-pkcs11.c
@@ -128,7 +128,11 @@ main (void)
}
else
{
- printf ("- Handshake was completed\n");
+ char* desc;
+
+ desc = gnutls_session_get_desc(session);
+ printf ("- Session info: %s\n", desc);
+ gnutls_free(desc);
}
gnutls_record_send (session, MSG, strlen (MSG));