# HG changeset patch # User Sebastien Decugis # Date 1278296972 -32400 # Node ID 2687aa506ef6537b5139af35b8c59ba2031ec63d # Parent ba39f4afd45d324bc975a6d2bb315f2b5539c29f Enforce TLS_OLD mechanism from configuration diff -r ba39f4afd45d -r 2687aa506ef6 freeDiameter/p_cnx.c --- a/freeDiameter/p_cnx.c Mon Jul 05 11:29:11 2010 +0900 +++ b/freeDiameter/p_cnx.c Mon Jul 05 11:29:32 2010 +0900 @@ -128,7 +128,7 @@ empty_connection_list(peer); /* Prepare the parameters */ - if (peer->p_hdr.info.config.pic_flags.sec != PI_SEC_DEFAULT) { + if ((peer->p_hdr.info.config.pic_flags.sec != PI_SEC_DEFAULT) || (fd_g_config->cnf_flags.tls_alg)) { dotls_immediate = 0; port_no = htons(peer->p_hdr.info.config.pic_port ?: fd_g_config->cnf_port); } else {