X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsrc%2Fauths%2Fcall_radius.c;h=c3637436dc168da653ef39cdfa04035b77b75fe6;hb=14e2dbbf0ec482f9fa5dd5a4fb6f2954a27f21eb;hp=1201078dcae24179539beb8e87a01f5579c7b80c;hpb=1b2adaee621f520aa640669a35c089c448294e9e;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/auths/call_radius.c b/src/src/auths/call_radius.c index 1201078dc..c3637436d 100644 --- a/src/src/auths/call_radius.c +++ b/src/src/auths/call_radius.c @@ -2,12 +2,22 @@ * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) University of Cambridge 1995 - 2009 */ +/* Copyright (c) University of Cambridge 1995 - 2016 */ /* See the file NOTICE for conditions of use and distribution. */ /* This file was originally supplied by Ian Kirk. The libradius support came from Alex Kiernan. */ +/* ugly hack to work around redefinition of ENV by radiusclient.h and + * db.h: define _DB_H_ so the db.h include thinks it's already included, + * we can get away with it like this, since this file doesn't use any db + * functions. */ +#ifndef _DB_H_ +# define _DB_H_ 1 +# define _DB_EXT_PROT_IN_ 1 +# define DB void +#endif + #include "../exim.h" /* This module contains functions that call the Radius authentication @@ -36,9 +46,14 @@ using its original API. At release 0.4.0 the API changed. */ #include #else #if !defined(RADIUS_LIB_RADIUSCLIENT) && !defined(RADIUS_LIB_RADIUSCLIENTNEW) - #define RADIUS_LIB_RADIUSCLIENT + # define RADIUS_LIB_RADIUSCLIENT + #endif + + #ifdef RADIUS_LIB_RADIUSCLIENTNEW + # include + #else + # include #endif - #include #endif @@ -150,6 +165,7 @@ switch (result) case OK_RC: return OK; + case REJECT_RC: case ERROR_RC: return FAIL;