Changeset 983:ab99bc1d5492 in freeDiameter for libfdcore/config.c
- Timestamp:
- Mar 17, 2013, 12:05:37 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/config.c
r974 r983 262 262 /* Check that TLS private key was given */ 263 263 if (! fd_g_config->cnf_sec_data.key_file) { 264 fprintf(stderr,"Missing private key configuration for TLS. Please provide the TLS_cred configuration directive.\n");264 TRACE_ERROR( "Missing private key configuration for TLS. Please provide the TLS_cred configuration directive.\n"); 265 265 return EINVAL; 266 266 } … … 295 295 ret = getaddrinfo(buf, NULL, &hints, &info); 296 296 if (ret != 0) { 297 fprintf(stderr,"Error resolving local FQDN :\n"297 TRACE_ERROR( "Error resolving local FQDN :\n" 298 298 " '%s' : %s\n" 299 299 "Please provide Identity in configuration file.\n", … … 315 315 start = strchr(fd_g_config->cnf_diamid, '.'); 316 316 if ((start == NULL) || (start[1] == '\0')) { 317 fprintf(stderr,"Unable to extract realm from the Identity '%s'.\n"317 TRACE_ERROR( "Unable to extract realm from the Identity '%s'.\n" 318 318 "Please fix your Identity setting or provide Realm.\n", 319 319 fd_g_config->cnf_diamid); … … 329 329 /* Validate some flags */ 330 330 if (fd_g_config->cnf_flags.no_ip4 && fd_g_config->cnf_flags.no_ip6) { 331 fprintf(stderr,"IP and IPv6 cannot be disabled at the same time.\n");331 TRACE_ERROR( "IP and IPv6 cannot be disabled at the same time.\n"); 332 332 return EINVAL; 333 333 } 334 334 if (fd_g_config->cnf_flags.no_tcp && fd_g_config->cnf_flags.no_sctp) { 335 fprintf(stderr,"TCP and SCTP cannot be disabled at the same time.\n");335 TRACE_ERROR( "TCP and SCTP cannot be disabled at the same time.\n"); 336 336 return EINVAL; 337 337 }
Note: See TracChangeset
for help on using the changeset viewer.