comparison 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
comparison
equal deleted inserted replaced
68:f09247048015 69:a8aa7ea6d629
515 /* Client side: we duplicate the parameters of the master session, then set the transport pointer */ 515 /* Client side: we duplicate the parameters of the master session, then set the transport pointer */
516 516
517 /* For client side, retrieve the master session parameters */ 517 /* For client side, retrieve the master session parameters */
518 if (conn->cc_tls_para.mode == GNUTLS_CLIENT) { 518 if (conn->cc_tls_para.mode == GNUTLS_CLIENT) {
519 CHECK_GNUTLS_DO( gnutls_session_get_data2(conn->cc_tls_para.session, &master_data), return ENOMEM ); 519 CHECK_GNUTLS_DO( gnutls_session_get_data2(conn->cc_tls_para.session, &master_data), return ENOMEM );
520 /* For debug: */
521 if (TRACE_BOOL(SR_LEVEL)) {
522 uint8_t id[256];
523 size_t ids = sizeof(id);
524 CHECK_GNUTLS_DO( gnutls_session_get_id(conn->cc_tls_para.session, id, &ids), /* continue */ );
525 TRACE_DEBUG_BUFFER(SR_LEVEL, "Master session id: [", id, ids, "]");
526 }
520 } 527 }
521 528
522 /* Initialize the session objects and start the handshake in a separate thread */ 529 /* Initialize the session objects and start the handshake in a separate thread */
523 for (i = 1; i < conn->cc_sctp_para.pairs; i++) { 530 for (i = 1; i < conn->cc_sctp_para.pairs; i++) {
524 /* Set credentials and priority */ 531 /* Set credentials and priority */
"Welcome to our mercurial repository"