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:
Dimitri Papadopoulos
2025-05-23 11:29:14 +02:00
parent 75543b3091
commit 8b284c645e
+8
View File
@@ -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;