changeset 372:2687aa506ef6

Enforce TLS_OLD mechanism from configuration
author Sebastien Decugis <sdecugis@nict.go.jp>
date Mon, 05 Jul 2010 11:29:32 +0900
parents ba39f4afd45d
children 477a76a7d42f
files freeDiameter/p_cnx.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 {
"Welcome to our mercurial repository"