Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for freeradius-client #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/src/EDITME
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,9 @@ ZCAT_COMMAND=/usr/bin/zcat
# RADIUSCLIENT is the radiusclient library; you probably need to add
# -lradiusclient to EXTRALIBS.
#
# RADIUSCLIENTNEW is the freeradius-client library; you probably need to add
# -lfreeradius-client to EXTRALIBS.
#
# The API for the radiusclient library was changed at release 0.4.0.
# Unfortunately, the header file does not define a version number that clients
# can use to support both the old and new APIs. If you are using version 0.4.0
Expand Down
4 changes: 4 additions & 0 deletions src/src/auths/call_radius.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ using its original API. At release 0.4.0 the API changed. */
#if !defined(RADIUS_LIB_RADIUSCLIENT) && !defined(RADIUS_LIB_RADIUSCLIENTNEW)
#define RADIUS_LIB_RADIUSCLIENT
#endif
#ifdef RADIUS_LIB_RADIUSCLIENTNEW
#include <freeradius-client.h>
#else
#include <radiusclient.h>
#endif
#endif


Expand Down