leafnode  1.12.0
About: Leafnode is a store & forward NNTP proxy for small (dialup) sites.
  Fossies Dox: leafnode-1.12.0.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

validatefqdn.c File Reference
#include "leafnode.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <syslog.h>
#include "validatefqdn.h"
Include dependency graph for validatefqdn.c:

Go to the source code of this file.


static int strcasecmpsuffix (const char *string, const char *suffix)
int is_validfqdn (const char *f)
void validatefqdn (int logtostdout)

Function Documentation

◆ is_validfqdn()

int is_validfqdn ( const char *  f)

Check the supplied FQDN for validity.

0 if invalid, 1 if valid

Definition at line 66 of file validatefqdn.c.

References fqdn, strcasecmpsuffix(), and strdup().

Referenced by dopost(), try_lock(), validatefqdn(), and whoami().

◆ strcasecmpsuffix()

static int strcasecmpsuffix ( const char *  string,
const char *  suffix 

Definition at line 53 of file validatefqdn.c.

Referenced by is_validfqdn().

◆ validatefqdn()

void validatefqdn ( int  logtostdout)

Definition at line 103 of file validatefqdn.c.

References fqdn, and is_validfqdn().

Referenced by readconfig().