Skip to content

Commit

Permalink
core: support radius radcli lib
Browse files Browse the repository at this point in the history
(cherry picked from commit 8aae606)
  • Loading branch information
linuxmaniac committed May 10, 2016
1 parent a164d19 commit 956d7f2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
7 changes: 7 additions & 0 deletions Makefile.radius
Expand Up @@ -28,7 +28,13 @@ DEFS+= -DUSE_FREERADIUS
RADIUSCLIENT_LIB=freeradius-client

else
ifeq ($(RADCLI),1)

# - radcli library
DEFS+= -DUSE_RADCLI
RADIUSCLIENT_LIB=radcli

else
# - radiusclient-ng v5 or v4 library
ifneq ($(radiusclient_ng), 4)

Expand All @@ -41,6 +47,7 @@ else
DEFS+=-DRADIUSCLIENT_NG_4
RADIUSCLIENT_LIB=radiusclient

endif
endif

endif
Expand Down
11 changes: 8 additions & 3 deletions lib/kcore/radius.h
Expand Up @@ -32,9 +32,14 @@
#define _RADIUS_CORE_H

#ifndef USE_FREERADIUS
#include <radiusclient-ng.h>
#define DEFAULT_RADIUSCLIENT_CONF \
"/usr/local/etc/radiusclient-ng/radiusclient.conf"
#ifdef USE_RADCLI
#include <radcli/radcli.h>
#define DEFAULT_RADIUSCLIENT_CONF ""
#else
#include <radiusclient-ng.h>
#define DEFAULT_RADIUSCLIENT_CONF \
"/usr/local/etc/radiusclient-ng/radiusclient.conf"
#endif
#else
#include <freeradius-client.h>
#define DEFAULT_RADIUSCLIENT_CONF ""
Expand Down

0 comments on commit 956d7f2

Please sign in to comment.