Navigation



Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/config.c

    r24 r20  
    100100                        struct fd_endpoint * ep = (struct fd_endpoint *)li;
    101101                        if (li != fd_g_config->cnf_endpoints.next) fd_log_debug("                             ");
    102                         sSA_DUMP_NODE( &ep->sa, NI_NUMERICHOST );
     102                        sSA_DUMP_NODE( &ep->ss, NI_NUMERICHOST );
    103103                        fd_log_debug("\n");
    104104                        li = li->next;
     
    229229        }
    230230       
    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        
    250231        /* Configure TLS default parameters */
    251232        if (! fd_g_config->cnf_sec_data.prio_string) {
     
    258239        }
    259240        if (! fd_g_config->cnf_sec_data.dh_bits) {
    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                 }
     241                TRACE_DEBUG(FULL, "Generating DH parameters...");
    263242                CHECK_GNUTLS_DO( gnutls_dh_params_generate2(
    264243                                        fd_g_config->cnf_sec_data.dh_cache,
    265244                                        GNUTLS_DEFAULT_DHBITS),
    266245                                 { TRACE_DEBUG(INFO, "Error in DH bits value : %d", GNUTLS_DEFAULT_DHBITS); return EINVAL; } );
    267                 if (TRACE_BOOL(INFO)) {
    268                         fd_log_debug("Done!\n");
    269                 }
    270         }
     246                TRACE_DEBUG(FULL, "DH parameters generated.");
     247        }
     248       
    271249       
    272250        return 0;
Note: See TracChangeset for help on using the changeset viewer.