Mercurial > hg > freeDiameter
comparison freeDiameter/p_ce.c @ 225:07e5914b48f7
Comment to solve a possible race condition later
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Fri, 26 Feb 2010 11:19:23 +0900 |
parents | 79768bf7d208 |
children | 965f5971dc23 |
comparison
equal
deleted
inserted
replaced
224:3caac3cd359d | 225:07e5914b48f7 |
---|---|
811 /* Reply a CEA */ | 811 /* Reply a CEA */ |
812 CHECK_FCT( fd_msg_new_answer_from_req ( fd_g_config->cnf_dict, &msg, 0 ) ); | 812 CHECK_FCT( fd_msg_new_answer_from_req ( fd_g_config->cnf_dict, &msg, 0 ) ); |
813 CHECK_FCT( fd_msg_rescode_set(msg, "DIAMETER_SUCCESS", NULL, NULL, 0 ) ); | 813 CHECK_FCT( fd_msg_rescode_set(msg, "DIAMETER_SUCCESS", NULL, NULL, 0 ) ); |
814 CHECK_FCT( add_CE_info(msg, peer->p_cnxctx, isi & PI_SEC_TLS_OLD, isi & PI_SEC_NONE) ); | 814 CHECK_FCT( add_CE_info(msg, peer->p_cnxctx, isi & PI_SEC_TLS_OLD, isi & PI_SEC_NONE) ); |
815 CHECK_FCT( fd_out_send(&msg, peer->p_cnxctx, peer) ); | 815 CHECK_FCT( fd_out_send(&msg, peer->p_cnxctx, peer) ); |
816 TODO("In case of SCTP, broadcast the CEA over all streams so that further messages cannot be delivered before the CEA?"); | |
816 | 817 |
817 /* Handshake if needed */ | 818 /* Handshake if needed */ |
818 if (isi & PI_SEC_TLS_OLD) { | 819 if (isi & PI_SEC_TLS_OLD) { |
819 fd_psm_change_state(peer, STATE_OPEN_HANDSHAKE); | 820 fd_psm_change_state(peer, STATE_OPEN_HANDSHAKE); |
820 CHECK_FCT_DO( fd_cnx_handshake(peer->p_cnxctx, GNUTLS_SERVER, peer->p_hdr.info.config.pic_priority, NULL), | 821 CHECK_FCT_DO( fd_cnx_handshake(peer->p_cnxctx, GNUTLS_SERVER, peer->p_hdr.info.config.pic_priority, NULL), |