Changeset 994:1e1d6f94cd94 in freeDiameter for libfdcore
- Timestamp:
- Mar 18, 2013, 9:22:07 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libfdcore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/config.c
r983 r994 262 262 /* Check that TLS private key was given */ 263 263 if (! fd_g_config->cnf_sec_data.key_file) { 264 TRACE_ERROR( "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."); 265 265 return EINVAL; 266 266 } … … 295 295 ret = getaddrinfo(buf, NULL, &hints, &info); 296 296 if (ret != 0) { 297 TRACE_ERROR( "Error resolving local FQDN :\n" 298 " '%s' : %s\n" 299 "Please provide Identity in configuration file.\n", 297 TRACE_ERROR( "Error resolving local FQDN : '%s' : %s" 298 ". Please provide Identity in configuration file.", 300 299 buf, gai_strerror(ret)); 301 300 return EINVAL; … … 315 314 start = strchr(fd_g_config->cnf_diamid, '.'); 316 315 if ((start == NULL) || (start[1] == '\0')) { 317 TRACE_ERROR( "Unable to extract realm from the Identity '%s'. \n"318 " Please fix your Identity setting or provide Realm.\n",316 TRACE_ERROR( "Unable to extract realm from the Identity '%s'." 317 " Please fix your Identity setting or provide Realm.", 319 318 fd_g_config->cnf_diamid); 320 319 return EINVAL; … … 329 328 /* Validate some flags */ 330 329 if (fd_g_config->cnf_flags.no_ip4 && fd_g_config->cnf_flags.no_ip6) { 331 TRACE_ERROR( "IP and IPv6 cannot be disabled at the same time. \n");330 TRACE_ERROR( "IP and IPv6 cannot be disabled at the same time."); 332 331 return EINVAL; 333 332 } 334 333 if (fd_g_config->cnf_flags.no_tcp && fd_g_config->cnf_flags.no_sctp) { 335 TRACE_ERROR( "TCP and SCTP cannot be disabled at the same time. \n");334 TRACE_ERROR( "TCP and SCTP cannot be disabled at the same time."); 336 335 return EINVAL; 337 336 } -
libfdcore/core.c
r983 r994 194 194 CHECK_GNUTLS_DO( gnutls_global_init(), return EINVAL ); 195 195 if ( ! gnutls_check_version(GNUTLS_VERSION) ) { 196 TRACE_ERROR( "The GNUTLS library is too old; found '%s', need '" GNUTLS_VERSION "' \n", gnutls_check_version(NULL));196 TRACE_ERROR( "The GNUTLS library is too old; found '%s', need '" GNUTLS_VERSION "'", gnutls_check_version(NULL)); 197 197 return EINVAL; 198 198 } else { … … 317 317 ret = pthread_join(core_runner, &th_ret); 318 318 if (ret != 0) { 319 TRACE_ERROR( "Unable to wait for main framework thread termination: %s \n", strerror(ret));319 TRACE_ERROR( "Unable to wait for main framework thread termination: %s", strerror(ret)); 320 320 return ret; 321 321 }
Note: See TracChangeset
for help on using the changeset viewer.