FACT++  1.0
int get_dns_accepted_domains ( char *  domains)

Definition at line 249 of file utilities.c.

References get_dns_accepted_nodes().

Referenced by handle_registration().

250 {
251  char *p;
252  int append = 0;
253 
254  if(get_dns_accepted_nodes(domains))
255  append = 1;
256  if( (p = getenv("DIM_DNS_ACCEPTED_DOMAINS")) == NULL )
257  {
258  if(!append)
259  return(0);
260  else
261  return(1);
262  }
263  else {
264  if(!append)
265  strcpy( domains, p );
266  else
267  {
268  strcat( domains, ",");
269  strcat( domains, p);
270  }
271  return(1);
272  }
273 }
int get_dns_accepted_nodes(char *nodes)
Definition: utilities.c:275

+ Here is the call graph for this function:

+ Here is the caller graph for this function: