--- embedaddon/mpd/src/auth.h 2021/03/17 00:39:23 1.1.1.3 +++ embedaddon/mpd/src/auth.h 2023/09/27 11:08:00 1.1.1.3.2.1 @@ -113,6 +113,7 @@ struct authparams { struct in_addr peer_dns[2]; /* DNS servers for peer to use */ struct in_addr peer_nbns[2]; /* NBNS servers for peer to use */ +#ifdef USE_RADIUS char *eapmsg; /* EAP Msg for forwarding to RADIUS * server */ int eapmsg_len; @@ -125,6 +126,7 @@ struct authparams { char *filter_id; /* RADIUS Framed-Filter-Id attribute */ +#endif char action[8 + LINK_MAX_NAME]; #ifdef USE_IPFW @@ -204,7 +206,9 @@ struct authparams { }; struct authconf { +#ifdef USE_RADIUS struct radiusconf radius; /* RADIUS configuration */ +#endif char authname[AUTH_MAX_AUTHNAME]; /* Configured username */ char password[AUTH_MAX_PASSWORD]; /* Configured password */ u_int acct_update; @@ -231,7 +235,9 @@ struct auth { struct pppTimer acct_timer; /* Timer for accounting updates */ struct papinfo pap; /* PAP state */ struct chapinfo chap; /* CHAP state */ +#ifdef USE_RADIUS struct eapinfo eap; /* EAP state */ +#endif struct paction *thread; /* async auth thread */ struct paction *acct_thread; /* async accounting auth thread */ struct authconf conf; /* Auth backends, RADIUS, etc. */ @@ -253,7 +259,9 @@ struct authdata { u_int code; /* Proto specific code */ u_char acct_type; /* Accounting type, Start, Stop, * Update */ +#ifdef USE_RADIUS u_char eap_radius; +#endif u_char status; u_char why_fail; char *reply_message; /* Text wich may displayed to the user */ @@ -261,10 +269,13 @@ struct authdata { char *mschapv2resp; /* Response String for MSCHAPv2 */ void (*finish) (Link l, struct authdata *auth); /* Finish handler */ int drop_user; /* RAD_MPD_DROP_USER value sent by - * RADIUS server */ + * RADIUS server or external acct script */ +#ifdef USE_RADIUS struct { struct rad_handle *handle; /* the RADIUS handle */ } radius; +#endif + #ifdef USE_OPIE struct { struct opie data;