Mercurial > hg > freeDiameter
diff freeDiameter/sctps.c @ 69:a8aa7ea6d629
Added a debug for client resuming
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Mon, 30 Nov 2009 18:44:28 +0900 |
parents | 067ab3fc6093 |
children | 30a7252cbb55 |
line wrap: on
line diff
--- a/freeDiameter/sctps.c Mon Nov 30 17:47:15 2009 +0900 +++ b/freeDiameter/sctps.c Mon Nov 30 18:44:28 2009 +0900 @@ -517,6 +517,13 @@ /* For client side, retrieve the master session parameters */ if (conn->cc_tls_para.mode == GNUTLS_CLIENT) { CHECK_GNUTLS_DO( gnutls_session_get_data2(conn->cc_tls_para.session, &master_data), return ENOMEM ); + /* For debug: */ + if (TRACE_BOOL(SR_LEVEL)) { + uint8_t id[256]; + size_t ids = sizeof(id); + CHECK_GNUTLS_DO( gnutls_session_get_id(conn->cc_tls_para.session, id, &ids), /* continue */ ); + TRACE_DEBUG_BUFFER(SR_LEVEL, "Master session id: [", id, ids, "]"); + } } /* Initialize the session objects and start the handshake in a separate thread */