Changeset 31:26685c67d387 in freeDiameter for freeDiameter/sctps.c
- Timestamp:
- Oct 28, 2009, 6:51:45 PM (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freeDiameter/sctps.c
r29 r31 431 431 { 432 432 struct sctps_ctx * ctx = (struct sctps_ctx *) arg; 433 int resumed; 434 433 435 TRACE_ENTRY("%p", arg); 434 436 … … 443 445 CHECK_GNUTLS_DO( gnutls_handshake( ctx->session ), return NULL); 444 446 447 resumed = gnutls_session_is_resumed(ctx->session); 448 if (!resumed) { 449 /* Check the credentials here also */ 450 CHECK_FCT_DO( fd_tls_verify_credentials(ctx->session, ctx->parent), return NULL ); 451 } 445 452 if (TRACE_BOOL(FULL)) { 446 int resumed = gnutls_session_is_resumed(ctx->session);447 453 if (resumed) { 448 454 fd_log_debug("Session was resumed successfully on stream %hu (conn: '%s')\n", ctx->strid, fd_cnx_getid(ctx->parent)); 449 455 } else { 450 fd_log_debug("Session was NOT resumed (full handshake) on stream %hu(conn: '%s')\n", ctx->strid, fd_cnx_getid(ctx->parent));456 fd_log_debug("Session was NOT resumed on stream %hu (full handshake + verif) (conn: '%s')\n", ctx->strid, fd_cnx_getid(ctx->parent)); 451 457 } 452 458 } 453 459 454 /* Finish */460 /* Finished, OK */ 455 461 return arg; 456 462 }
Note: See TracChangeset
for help on using the changeset viewer.