3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-06 03:18:46 +02: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:
James Prestwood 2023-11-16 11:15:26 -08:00 committed by Denis Kenzior
parent aa116ba522
commit 00ffb056e8

View File

@ -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;