|
version 1.1.1.3, 2016/11/01 09:56:12
|
version 1.1.1.6, 2021/03/17 00:39:23
|
|
Line 37
|
Line 37
|
| |
|
| /* Global variables */ |
/* Global variables */ |
| |
|
| static int RadiusSetCommand(Context ctx, int ac, char *av[], void *arg); | static int RadiusSetCommand(Context ctx, int ac, const char *const av[], const void *arg); |
| static int RadiusAddServer(AuthData auth, short request_type); |
static int RadiusAddServer(AuthData auth, short request_type); |
| static int RadiusOpen(AuthData auth, short request_type); |
static int RadiusOpen(AuthData auth, short request_type); |
| static int RadiusStart(AuthData auth, short request_type); |
static int RadiusStart(AuthData auth, short request_type); |
|
Line 71
|
Line 71
|
| const struct cmdtab RadiusUnSetCmds[] = { |
const struct cmdtab RadiusUnSetCmds[] = { |
| { "server {name} [{auth port}] [{acct port}]", "Unset (remove) radius server" , |
{ "server {name} [{auth port}] [{acct port}]", "Unset (remove) radius server" , |
| RadiusSetCommand, NULL, 2, (void *) UNSET_SERVER }, |
RadiusSetCommand, NULL, 2, (void *) UNSET_SERVER }, |
| { NULL }, | { NULL, NULL, NULL, NULL, 0, NULL }, |
| }; |
}; |
| |
|
| const struct cmdtab RadiusSetCmds[] = { |
const struct cmdtab RadiusSetCmds[] = { |
|
Line 97
|
Line 97
|
| RadiusSetCommand, NULL, 2, (void *) SET_ENABLE }, |
RadiusSetCommand, NULL, 2, (void *) SET_ENABLE }, |
| { "disable [opt ...]", "Disable option", |
{ "disable [opt ...]", "Disable option", |
| RadiusSetCommand, NULL, 2, (void *) SET_DISABLE }, |
RadiusSetCommand, NULL, 2, (void *) SET_DISABLE }, |
| { NULL }, | { NULL, NULL, NULL, NULL, 0, NULL }, |
| }; |
}; |
| |
|
| /* |
/* |
| * INTERNAL VARIABLES |
* INTERNAL VARIABLES |
| */ |
*/ |
| |
|
| static struct confinfo gConfList[] = { | static const struct confinfo gConfList[] = { |
| { 0, RADIUS_CONF_MESSAGE_AUTHENTIC, "message-authentic" }, |
{ 0, RADIUS_CONF_MESSAGE_AUTHENTIC, "message-authentic" }, |
| { 0, 0, NULL }, |
{ 0, 0, NULL }, |
| }; |
}; |
|
Line 253 RadiusClose(AuthData auth)
|
Line 253 RadiusClose(AuthData auth)
|
| } |
} |
| |
|
| int |
int |
| RadStat(Context ctx, int ac, char *av[], void *arg) | RadStat(Context ctx, int ac, const char *const av[], const void *arg) |
| { |
{ |
| Auth const a = &ctx->lnk->lcp.auth; |
Auth const a = &ctx->lnk->lcp.auth; |
| RadConf const conf = &a->conf.radius; |
RadConf const conf = &a->conf.radius; |
|
Line 262 RadStat(Context ctx, int ac, char *av[], void *arg)
|
Line 262 RadStat(Context ctx, int ac, char *av[], void *arg)
|
| RadServe_Conf server; |
RadServe_Conf server; |
| char buf1[64]; |
char buf1[64]; |
| |
|
| |
(void)ac; |
| |
(void)av; |
| |
(void)arg; |
| |
|
| Printf("Configuration:\r\n"); |
Printf("Configuration:\r\n"); |
| Printf("\tTimeout : %d\r\n", conf->radius_timeout); |
Printf("\tTimeout : %d\r\n", conf->radius_timeout); |
| Printf("\tRetries : %d\r\n", conf->radius_retries); |
Printf("\tRetries : %d\r\n", conf->radius_retries); |
|
Line 357 RadiusAddServer(AuthData auth, short request_type)
|
Line 361 RadiusAddServer(AuthData auth, short request_type)
|
| |
|
| /* Set menu options */ |
/* Set menu options */ |
| static int |
static int |
| RadiusSetCommand(Context ctx, int ac, char *av[], void *arg) | RadiusSetCommand(Context ctx, int ac, const char *const av[], const void *arg) |
| { |
{ |
| RadConf const conf = &ctx->lnk->lcp.auth.conf.radius; |
RadConf const conf = &ctx->lnk->lcp.auth.conf.radius; |
| RadServe_Conf server; |
RadServe_Conf server; |
|
Line 1767 RadiusGetParams(AuthData auth, int eap_proxy)
|
Line 1771 RadiusGetParams(AuthData auth, int eap_proxy)
|
| |
|
| case RAD_MICROSOFT_MS_MPPE_ENCRYPTION_TYPES: |
case RAD_MICROSOFT_MS_MPPE_ENCRYPTION_TYPES: |
| { |
{ |
| char buf[48]; |
|
| auth->params.msoft.types = rad_cvt_int(data); |
auth->params.msoft.types = rad_cvt_int(data); |
| Log(LG_RADIUS2, ("[%s] RADIUS: Get RAD_MICROSOFT_MS_MPPE_ENCRYPTION_TYPES: %d (%s)", |
Log(LG_RADIUS2, ("[%s] RADIUS: Get RAD_MICROSOFT_MS_MPPE_ENCRYPTION_TYPES: %d (%s)", |
| auth->info.lnkname, auth->params.msoft.types, |
auth->info.lnkname, auth->params.msoft.types, |