From 2d1720c15fc474c921ab17286a7c897c4354a778 Mon Sep 17 00:00:00 2001 From: z3APA3A <3APA3A@3proxy.ru> Date: Fri, 22 Dec 2017 18:53:50 +0300 Subject: [PATCH] Move RADIUS related code to #ifndef NORADIUS --- src/conf.c | 5 ++++- src/datatypes.c | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index 75eda74..55fd01b 100644 --- a/src/conf.c +++ b/src/conf.c @@ -327,9 +327,11 @@ static int h_log(int argc, unsigned char ** argv){ conf.logfunc = logsql; } #endif +#ifndef NORADIUS else if(!strcmp(argv[1],"radius")){ conf.logfunc = logradius; } +#endif else { FILE *fp; if(argc > 2) { @@ -1274,6 +1276,7 @@ static int h_delimchar(int argc, unsigned char **argv){ } +#ifndef NORADIUS static int h_radius(int argc, unsigned char **argv){ unsigned short port; @@ -1309,7 +1312,7 @@ static int h_radius(int argc, unsigned char **argv){ } return 0; } - +#endif static int h_authcache(int argc, unsigned char **argv){ conf.authcachetype = 0; if(strstr((char *) *(argv + 1), "ip")) conf.authcachetype |= 1; diff --git a/src/datatypes.c b/src/datatypes.c index d7bcdd7..183db0c 100644 --- a/src/datatypes.c +++ b/src/datatypes.c @@ -520,7 +520,9 @@ static void * ef_server_childcount(struct node * node){ static void * ef_server_log(struct node * node){ if(((struct srvparam *)node->value) -> logfunc == lognone) return "none"; +#ifndef NORADIUS else if(((struct srvparam *)node->value) -> logfunc == logradius) return "radius"; +#endif else if(((struct srvparam *)node->value) -> logfunc == logstdout) return (((struct srvparam *)node->value) -> logtarget)?"file":"stdout"; #ifndef _WIN32