3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

iwd: define a maximum password length

This commit is contained in:
James Prestwood 2020-03-06 11:16:26 -08:00 committed by Denis Kenzior
parent 77cfb615e5
commit 301d8473df

View File

@ -22,6 +22,13 @@
#define uninitialized_var(x) x = x
/*
* Set a maximum to prevent sending too much data to the kernel when hashing
* the password (or any other crypto operations involving the password).
* This value is not tied to IEEE or any RFC's, just chosen to be long enough
*/
#define IWD_MAX_PASSWORD_LEN 2048
struct l_genl;
struct l_genl_family;