Fix RADIUS Called-Station-Id to not escape SSID
Commitmaster986de33d5c
('Convert remaining SSID routines from char* to u8*') started using wpa_ssid_txt() to print out the SSID for the Called-Station-Id attribute in RADIUS messages. This was further modified by commit6bc1f95613
('Use printf escaping in SSID-to-printable-string conversion') to use printf escaping (though, even without this, wpa_ssid_txt() would have masked characters). This is not desired for Called-Station-Id attribute. While it is defined as a "String", RFC 2865 indicates that "a robust implementation SHOULD support the field as undistinguished octets.". Copy the SSID as an array of arbitrary octets into Called-Station-Id to avoid any kind of masking or escaping behavior. This goes a step further from the initial implementation by allowing even the possible (but unlikely in practical use cases) 0x00 octet in the middle of an SSID. Signed-off-by: Jouni Malinen <j@w1.fi>
parent
52811b8c90
commit
5bd9be4d17
Loading…
Reference in New Issue