mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-02 07:40:12 +01:00
supplicant: Validate password as a UTF-8 string, not a byte array
The 802.1x password for MS-CHAPv2 can be up to 256 UCS-2 characters, so we need to validate the password as UTF-8 to make sure we don't reject valid passwords containing non-ASCII characters
This commit is contained in:
parent
ef9551bcf3
commit
2c484fbc77
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ static const struct Opt opt_table[] = {
|
|||
{ "eapol_flags", TYPE_INT, 0, 3, FALSE, NULL },
|
||||
{ "eap", TYPE_KEYWORD, 0, 0, FALSE, eap_allowed },
|
||||
{ "identity", TYPE_BYTES, 0, 0, FALSE, NULL },
|
||||
{ "password", TYPE_BYTES, 0, 0, FALSE, NULL },
|
||||
{ "password", TYPE_UTF8, 0, 0, FALSE, NULL },
|
||||
{ "ca_path", TYPE_BYTES, 0, 0, FALSE, NULL },
|
||||
{ "subject_match", TYPE_BYTES, 0, 0, FALSE, NULL },
|
||||
{ "altsubject_match", TYPE_BYTES, 0, 0, FALSE, NULL },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue