Navigation


Changeset 31:26685c67d387 in freeDiameter for freeDiameter/sctps.c


Ignore:
Timestamp:
Oct 28, 2009, 6:51:45 PM (15 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Completed the test and fixed a couple issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/sctps.c

    r29 r31  
    431431{
    432432        struct sctps_ctx * ctx = (struct sctps_ctx *) arg;
     433        int resumed;
     434       
    433435        TRACE_ENTRY("%p", arg);
    434436       
     
    443445        CHECK_GNUTLS_DO( gnutls_handshake( ctx->session ), return NULL);
    444446                       
     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        }
    445452        if (TRACE_BOOL(FULL)) {
    446                 int resumed = gnutls_session_is_resumed(ctx->session);
    447453                if (resumed) {
    448454                        fd_log_debug("Session was resumed successfully on stream %hu (conn: '%s')\n", ctx->strid, fd_cnx_getid(ctx->parent));
    449455                } 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));
    451457                }
    452458        }
    453459                       
    454         /* Finish */
     460        /* Finished, OK */
    455461        return arg;
    456462}
Note: See TracChangeset for help on using the changeset viewer.