RADIUS/EAP server: Use longer username buffer to avoid truncation
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 2 Jun 2014 12:50:31 +0000 (15:50 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 2 Jun 2014 14:36:51 +0000 (17:36 +0300)
commit95f6f6a49d44a2fc23e425482455cd170ee8255a
tree3cc9ef72475687f1bb7df21a5d42e068027c0d52
parentee54e4010e57c68422d1db8d7388dcf001d3db7d
RADIUS/EAP server: Use longer username buffer to avoid truncation

If the peer provides a username with large part of it being non-ASCII
characters, the previously used buffers may not have been long enough to
include the full string in debug logs and database search due to forced
truncation of the string by printf_encode(). Avoid this by increasing
the buffer sizes to fit in the maximum result.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/eap_server/eap_server_identity.c
src/eap_server/eap_server_mschapv2.c
src/eap_server/eap_server_ttls.c
src/radius/radius_server.c