Additional data are passed only to auth module's global_init

This commit is contained in:
Nikos Mavrogiannopoulos
2015-02-19 11:47:20 +01:00
parent 2d72c0a526
commit bfeab4b015
8 changed files with 22 additions and 18 deletions
+1 -3
View File
@@ -61,8 +61,7 @@ static void radius_global_deinit()
rc_destroy(rh);
}
static int radius_auth_init(void **ctx, void *pool, const char *username, const char *ip,
void *additional)
static int radius_auth_init(void **ctx, void *pool, const char *username, const char *ip)
{
struct radius_ctx_st *pctx;
char *default_realm;
@@ -79,7 +78,6 @@ static int radius_auth_init(void **ctx, void *pool, const char *username, const
strlcpy(pctx->username, username, sizeof(pctx->username));
strlcpy(pctx->remote_ip, ip, sizeof(pctx->remote_ip));
pctx->config = additional;
pctx->pass_msg = pass_msg_first;
default_realm = rc_conf_str(rh, "default_realm");