#include "subrou.h"
#include "subafn.h"
#include "unidns.h"
+#include "gesspf.h"
/*
\f
case 2 : //initialisation
(void) afn_modesubafn(true);
(void) rou_modesubrou(true);
+ (void) spf_modegesspf(true);
break;
case 3 : //doing main tash
if (argc>1) { //always
SPFENU spf;
afnnum=afn_getipnum(argv[2]);
- spf=dns_get_spf_status(&try,argv[1],afnnum);
- (void) rou_alert(0,"%s %s ==> %s",argv[1],argv[2],dns_spfASCII(spf));
+ spf=spf_getstatus(&try,argv[1],afnnum);
+ (void) rou_alert(0,"%s %s ==> %s",argv[1],argv[2],spf_spfASCII(spf));
}
break;
case 4 : //doing main tash
+ (void) spf_modegesspf(false);
(void) rou_modesubrou(false);
(void) afn_modesubafn(false);
afnnum=afn_freeipnum(afnnum);
/* Procedure to return the SPF status string value */
/* */
/********************************************************/
-PUBLIC const char *dns_spfASCII(SPFENU spf)
+PUBLIC const char *spf_spfASCII(SPFENU spf)
{
#define OPEP "gesspf.c:dns_spfASCII"
PUBLIC SPFENU spf_getstatus(int *try,char *domain,AFNTYP *afnnum)
{
-#define OPEP "gesspf.c:dns_get_spf_status"
+#define OPEP "gesspf.c:spf_getstatus"
SPFENU spf;
char *list;
if ((list=dns_getspf(domain))==(char *)0)
phase=999; //trouble trouble
break;
- case 3 : //check if we have only ONE SPF entry
- if (rou_nbrlist((void **)list)>1) {
- (void) rou_alert(0,"%s more than 1 SPF record for domain <%s>",
- OPEP,domain);
- phase=999; //trouble trouble
- }
- break;
- case 4 : //gett the spf LIST related to SPF
+ case 3 : //gett the spf LIST related to SPF
spf=is_peerip_ok(try,domain,afnnum,list);
list=rou_freestr(list);
break;