comparison libfdcore/hooks.c @ 1186:56c36d1007b4 dtls_dev

Further preparation of the DTLS integration. Some cleanups in the GNUTLS handling.
author Sebastien Decugis <sdecugis@freediameter.net>
date Fri, 07 Jun 2013 18:48:34 +0800
parents a4604f98adae
children 90d1222a65a8
comparison
equal deleted inserted replaced
1185:23695957bfc0 1186:56c36d1007b4
417 DiamId_t id = NULL; 417 DiamId_t id = NULL;
418 if ((!fd_msg_source_get( msg, &id, NULL )) && (id == NULL)) { /* The CEA is locally issued */ 418 if ((!fd_msg_source_get( msg, &id, NULL )) && (id == NULL)) { /* The CEA is locally issued */
419 fd_msg_answ_getq(msg, &msg); /* We dump the CER in that case */ 419 fd_msg_answ_getq(msg, &msg); /* We dump the CER in that case */
420 } 420 }
421 CHECK_MALLOC_DO(fd_msg_dump_treeview(&buf, &len, NULL, msg, NULL, 0, 1), break); 421 CHECK_MALLOC_DO(fd_msg_dump_treeview(&buf, &len, NULL, msg, NULL, 0, 1), break);
422 LOG_N("Connected to '%s', remote capabilities: ", peer ? peer->p_hdr.info.pi_diamid : "<unknown>"); 422 char protobuf[40];
423 if (peer) {
424 CHECK_FCT_DO(fd_peer_cnx_proto_info(&peer->p_hdr, protobuf, sizeof(protobuf)), break );
425 } else {
426 protobuf[0] = '-';
427 protobuf[1] = '\0';
428 }
429 LOG_N("Connected to '%s' (%s), remote capabilities: ", peer ? peer->p_hdr.info.pi_diamid : "<unknown>", protobuf);
423 LOG_SPLIT(FD_LOG_NOTICE, " ", buf?:"<error dumping message>", NULL); 430 LOG_SPLIT(FD_LOG_NOTICE, " ", buf?:"<error dumping message>", NULL);
424 break; 431 break;
425 } 432 }
426 433
427 } 434 }
"Welcome to our mercurial repository"