summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-03-12 18:23:49 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-03-12 18:23:49 +0100
commita9a3a26ac27d2b003c4d245d32b59c92aa5ded35 (patch)
tree6bc1f3afb25a0bb423967045a2e7bc40251db167 /src
parentba1a0fae3371baccaa24aed1f5fcdc12f6df82e1 (diff)
downloadgnutls-a9a3a26ac27d2b003c4d245d32b59c92aa5ded35.tar.gz
Added gnutls_session_get_desc()
Diffstat (limited to 'src')
-rw-r--r--src/common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c
index 6a6ede25cf..8663fc7753 100644
--- a/src/common.c
+++ b/src/common.c
@@ -457,8 +457,13 @@ print_info (gnutls_session_t session, int verbose, int print_cert)
unsigned char session_id[33];
size_t session_id_size = sizeof (session_id);
gnutls_srtp_profile_t srtp_profile;
+ char *desc;
int rc;
+ desc = gnutls_session_get_desc(session);
+ printf ("- Description: %s\n", desc);
+ gnutls_free(desc);
+
/* print session ID */
gnutls_session_get_id (session, session_id, &session_id_size);
printf ("- Session ID: %s\n",