]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
create and use generic decode_value() function
authorAlan T. DeKok <aland@freeradius.org>
Sat, 23 Aug 2025 11:49:37 +0000 (07:49 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 23 Aug 2025 18:24:40 +0000 (14:24 -0400)
commit4adfd280e958db1bb6fb7ab014301136ffe30167
treea74b9357443f35581f2ab7c3ee4700e6b3f6b1fc
parent97f940d23d85a88f0df4aef15ec0958794bd1338
create and use generic decode_value() function

which makes the struct decoder a little simpler.

While we're at it, rework the struct decoder to be clearer.
And decode raw values more often, instead of hoisting the raw
pair to the enclosing struct.
src/lib/util/decode.c
src/lib/util/struct.c
src/tests/unit/protocols/dhcpv4/dhcp-auth.txt
src/tests/unit/protocols/dhcpv6/rfc6355.txt