{"bytes",DATETIME_BYTE,~DATETIME_BYTE},
};
+static struct param_list realtime_unauth_values[]=
+{
+ {"show",REALTIME_UNAUTH_REC_SHOW,~REALTIME_UNAUTH_REC_SHOW},
+ {"ignore",REALTIME_UNAUTH_REC_IGNORE,~REALTIME_UNAUTH_REC_IGNORE},
+};
+
static int is_param(const char *param,const char *buf)
{
int plen;
if (getparam_string("realtime_types",buf,RealtimeTypes,sizeof(RealtimeTypes))>0) return;
- if (getparam_string("realtime_unauthenticated_records",buf,RealtimeUnauthRec,sizeof(RealtimeUnauthRec))>0) return;
+ if (getparam_list("realtime_unauthenticated_records",SET_LIST(realtime_unauth_values),buf,&RealtimeUnauthRec)>0) return;
if (getparam_int("realtime_refresh_time",buf,&realtime_refresh)>0) return;
#define DATETIME_ELAP 0x0001UL
#define DATETIME_BYTE 0x0002UL
+#define REALTIME_UNAUTH_REC_SHOW 0x0001UL
+#define REALTIME_UNAUTH_REC_IGNORE 0x0001UL
+
struct periodstruct
{
//! The first date of the period.
char RealtimeTypes[1024];
char cmd[255];
char ImageFile[255];
-char RealtimeUnauthRec[15];
+unsigned long int RealtimeUnauthRec;
char LDAPHost[255];
char LDAPBindDN[512];
char LDAPBindPW[255];
NtlmUserFormat=NTLMUSERFORMAT_DOMAINUSER;
IndexTree=INDEX_TREE_FILE;
strcpy(RealtimeTypes,"GET,PUT,CONNECT");
- strcpy(RealtimeUnauthRec,"show");
+ RealtimeUnauthRec=REALTIME_UNAUTH_REC_SHOW;
RedirectorIgnoreDate=false;
DansguardianIgnoreDate=false;
DataFileUrl=DATAFILEURL_IP;
}
}
- if(strncmp(user,"-",1) == 0 && strcmp(RealtimeUnauthRec,"ignore") == 0)
+ if(strncmp(user,"-",1) == 0 && RealtimeUnauthRec==REALTIME_UNAUTH_REC_IGNORE)
return(0);
tt=atoi(dat);