]> git.ipfire.org Git - thirdparty/krb5.git/commit
Support larger RADIUS attributes in libkrad 1229/head
authorSumit Bose <sbose@redhat.com>
Mon, 8 Nov 2021 16:48:50 +0000 (17:48 +0100)
committerGreg Hudson <ghudson@mit.edu>
Wed, 10 Nov 2021 20:30:04 +0000 (15:30 -0500)
commitf35077bfc570205092eca2a9d44e50ce265622f4
tree816d95e91d599a6afc7d8531163c647f31190ad0
parente0084425df784952e76b3bcc8ae9d08300234733
Support larger RADIUS attributes in libkrad

In kr_attrset_decode(), explicitly treat the length byte as unsigned.
Otherwise attributes longer than 125 characters will be rejected with
EBADMSG.

Add a 253-character-long NAS-Identifier attribute to the tests to make
sure that attributes with the maximal number of characters are working
as expected.

[ghudson@mit.edu: used uint8_t cast per current practices; edited
commit message]

ticket: 9036 (new)
src/lib/krad/attrset.c
src/lib/krad/t_packet.c