mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-08-09 09:51:49 +08:00
Work around API breakage in freeradius-client 1.1.8
FreeRADIUS client 1.1.8 introduced this backwards-incompatible API change: https://github.com/FreeRADIUS/freeradius-client/commit/50d78bb53f4f341aa708e196b8955cacbae59669 Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
This commit is contained in:
@@ -560,8 +560,16 @@ static int radius_auth_pass(void *ctx, const char *pass, unsigned int pass_len)
|
||||
oc_syslog(
|
||||
LOG_DEBUG,
|
||||
"radius-auth: ignoring server's attribute (%u,%u) of type %u",
|
||||
#ifndef ATTRID /* FreeRADIUS client >= 1.1.8 */
|
||||
(unsigned int)vp->attribute,
|
||||
#else
|
||||
(unsigned int)ATTRID(vp->attribute),
|
||||
#endif
|
||||
#ifndef VENDOR /* FreeRADIUS client >= 1.1.8 */
|
||||
(unsigned int)vp->vendor,
|
||||
#else
|
||||
(unsigned int)VENDOR(vp->attribute),
|
||||
#endif
|
||||
(unsigned int)vp->type);
|
||||
}
|
||||
vp = vp->next;
|
||||
|
||||
Reference in New Issue
Block a user