|
version 1.1.1.2, 2016/11/01 09:56:12
|
version 1.1.1.3, 2021/03/17 00:39:23
|
|
Line 240 struct auth {
|
Line 240 struct auth {
|
| }; |
}; |
| typedef struct auth *Auth; |
typedef struct auth *Auth; |
| |
|
| struct radiusconf radius; /* RADIUS configuration */ |
|
| |
|
| /* |
/* |
| * Interface between the auth-backend (secret file, RADIUS, etc.) and Mpd's |
* Interface between the auth-backend (secret file, RADIUS, etc.) and Mpd's |
| * internal structs. |
* internal structs. |
|
Line 287 struct authdata {
|
Line 285 struct authdata {
|
| #endif |
#endif |
| char *downReason; /* Reason for link going down */ |
char *downReason; /* Reason for link going down */ |
| time_t last_up; /* Time this link last got up */ |
time_t last_up; /* Time this link last got up */ |
| PhysType phys_type; /* Device type descriptor */ | const struct phystype *phys_type; /* Device type descriptor */ |
| int linkID; /* Absolute link number */ |
int linkID; /* Absolute link number */ |
| char peer_ident[64]; /* LCP ident received from peer */ |
char peer_ident[64]; /* LCP ident received from peer */ |
| struct in_addr peer_addr; /* currently assigned |
struct in_addr peer_addr; /* currently assigned |
|
Line 307 extern const struct cmdtab AuthSetCmds[];
|
Line 305 extern const struct cmdtab AuthSetCmds[];
|
| * GLOBAL VARIABLES |
* GLOBAL VARIABLES |
| */ |
*/ |
| extern const u_char gMsoftZeros[32]; |
extern const u_char gMsoftZeros[32]; |
| extern int gMaxLogins; /* max number of concurrent logins per |
|
| * user */ |
|
| extern int gMaxLoginsCI; |
|
| |
|
| /* |
/* |
| * FUNCTIONS |
* FUNCTIONS |
|
Line 327 AuthOutput(Link l, int proto, u_int code, u_int id,
|
Line 322 AuthOutput(Link l, int proto, u_int code, u_int id,
|
| u_char eap_type); |
u_char eap_type); |
| extern void AuthFinish(Link l, int which, int ok); |
extern void AuthFinish(Link l, int which, int ok); |
| extern void AuthCleanup(Link l); |
extern void AuthCleanup(Link l); |
| extern int AuthStat(Context ctx, int ac, char *av[], void *arg); | extern int AuthStat(Context ctx, int ac, const char *const av[], const void *arg); |
| extern void AuthAccountStart(Link l, int type); |
extern void AuthAccountStart(Link l, int type); |
| extern void AuthAccountTimeout(void *arg); |
extern void AuthAccountTimeout(void *arg); |
| extern AuthData AuthDataNew(Link l); |
extern AuthData AuthDataNew(Link l); |