mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 02:09:38 +01:00
dpp-util: store SSID as string, not raw buffer
Nearly every use of the ssid member first has to memcpy it to a buffer and NULL terminate. Instead just store the ssid as a string when creating/parsing from JSON.
This commit is contained in:
parent
aa116ba522
commit
00ffb056e8
@ -112,7 +112,7 @@ enum dpp_attribute_type {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct dpp_configuration {
|
struct dpp_configuration {
|
||||||
uint8_t ssid[32];
|
char ssid[33];
|
||||||
size_t ssid_len;
|
size_t ssid_len;
|
||||||
uint32_t akm_suites;
|
uint32_t akm_suites;
|
||||||
char *passphrase;
|
char *passphrase;
|
||||||
|
Loading…
Reference in New Issue
Block a user