Changes in freeDiameter/config.c [20:277ec00d793e:24:bd83ce9328ed] in freeDiameter
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freeDiameter/config.c
r20 r24 100 100 struct fd_endpoint * ep = (struct fd_endpoint *)li; 101 101 if (li != fd_g_config->cnf_endpoints.next) fd_log_debug(" "); 102 sSA_DUMP_NODE( &ep->s s, NI_NUMERICHOST );102 sSA_DUMP_NODE( &ep->sa, NI_NUMERICHOST ); 103 103 fd_log_debug("\n"); 104 104 li = li->next; … … 229 229 } 230 230 231 /* Validate local endpoints */ 232 if ((!FD_IS_LIST_EMPTY(&fd_g_config->cnf_endpoints)) && (fd_g_config->cnf_flags.no_ip4 || fd_g_config->cnf_flags.no_ip6)) { 233 struct fd_list * li; 234 for ( li = fd_g_config->cnf_endpoints.next; li != &fd_g_config->cnf_endpoints; li = li->next) { 235 struct fd_endpoint * ep = (struct fd_endpoint *)li; 236 if ( (fd_g_config->cnf_flags.no_ip4 && (ep->sa.sa_family == AF_INET)) 237 ||(fd_g_config->cnf_flags.no_ip6 && (ep->sa.sa_family == AF_INET6)) ) { 238 li = li->prev; 239 fd_list_unlink(&ep->chain); 240 if (TRACE_BOOL(INFO)) { 241 fd_log_debug("Info: Removing local address conflicting with the flags no_IP / no_IP6 : "); 242 sSA_DUMP_NODE( &ep->sa, AI_NUMERICHOST ); 243 fd_log_debug("\n"); 244 } 245 free(ep); 246 } 247 } 248 } 249 231 250 /* Configure TLS default parameters */ 232 251 if (! fd_g_config->cnf_sec_data.prio_string) { … … 239 258 } 240 259 if (! fd_g_config->cnf_sec_data.dh_bits) { 241 TRACE_DEBUG(FULL, "Generating DH parameters..."); 260 if (TRACE_BOOL(INFO)) { 261 fd_log_debug("Generating Diffie-Hellman parameters of size %d (this takes a few seconds)... ", GNUTLS_DEFAULT_DHBITS); 262 } 242 263 CHECK_GNUTLS_DO( gnutls_dh_params_generate2( 243 264 fd_g_config->cnf_sec_data.dh_cache, 244 265 GNUTLS_DEFAULT_DHBITS), 245 266 { TRACE_DEBUG(INFO, "Error in DH bits value : %d", GNUTLS_DEFAULT_DHBITS); return EINVAL; } ); 246 TRACE_DEBUG(FULL, "DH parameters generated."); 247 } 248 267 if (TRACE_BOOL(INFO)) { 268 fd_log_debug("Done!\n"); 269 } 270 } 249 271 250 272 return 0;
Note: See TracChangeset
for help on using the changeset viewer.