Skip to content

Commit

Permalink
Move some functions around in clients.c and expose client_afrom_cs so…
Browse files Browse the repository at this point in the history
… it can be used to parse dynamically generated client sections
  • Loading branch information
arr2036 committed Oct 11, 2014
1 parent 434dc62 commit 4462d90
Show file tree
Hide file tree
Showing 5 changed files with 244 additions and 235 deletions.
8 changes: 5 additions & 3 deletions src/include/radiusd.h
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,11 @@ void client_free(RADCLIENT *client);
int client_add(RADCLIENT_LIST *clients, RADCLIENT *client);
#ifdef WITH_DYNAMIC_CLIENTS
void client_delete(RADCLIENT_LIST *clients, RADCLIENT *client);
RADCLIENT *client_from_request(RADCLIENT_LIST *clients, REQUEST *request);
RADCLIENT *client_afrom_request(RADCLIENT_LIST *clients, REQUEST *request);
#endif
RADCLIENT *client_from_query(TALLOC_CTX *ctx, char const *identifier, char const *secret, char const *shortname,

RADCLIENT *client_afrom_cs(TALLOC_CTX *ctx, CONF_SECTION *cs, bool in_server);
RADCLIENT *client_afrom_query(TALLOC_CTX *ctx, char const *identifier, char const *secret, char const *shortname,
char const *type, char const *server, bool require_ma) CC_HINT(nonnull(2, 3));

RADCLIENT *client_find(RADCLIENT_LIST const *clients,
Expand All @@ -578,7 +580,7 @@ RADCLIENT *client_find(RADCLIENT_LIST const *clients,
RADCLIENT *client_findbynumber(RADCLIENT_LIST const *clients,
int number);
RADCLIENT *client_find_old(fr_ipaddr_t const *ipaddr);
bool client_validate(RADCLIENT_LIST *clients, RADCLIENT *master, RADCLIENT *c);
bool client_add_dynamic(RADCLIENT_LIST *clients, RADCLIENT *master, RADCLIENT *c);
RADCLIENT *client_read(char const *filename, int in_server, int flag);


Expand Down
Loading

0 comments on commit 4462d90

Please sign in to comment.