Skip to content

Commit

Permalink
wifi_cred: Limit Enterprise credentials length
Browse files Browse the repository at this point in the history
Using fully allowed lengths cause the settings subsystem maximum allowed
length overflow, so, as a temporary workaround limit the lengths, these
should be enough for typical usecases.

We need to relook at this approach esp. dealing with flash as we cannot
just increase maximum allowed lengths.

Signed-off-by: Chaitanya Tata <[email protected]>
  • Loading branch information
krish2718 committed Oct 25, 2024
1 parent cff9759 commit bad51ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/net/wifi_credentials.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ struct wifi_credentials_header {
uint32_t flags;
uint8_t channel;
uint32_t timeout;
char anon_id[WIFI_ENT_IDENTITY_MAX_LEN];
uint8_t aid_length; /* Max 64 */
char key_passwd[WIFI_ENT_PSWD_MAX_LEN];
uint8_t key_passwd_length; /* Max 128 */
char anon_id[16];
uint8_t aid_length;
char key_passwd[16];
uint8_t key_passwd_length;
};

/**
Expand Down

0 comments on commit bad51ca

Please sign in to comment.