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
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ enum dpp_attribute_type {
};
struct dpp_configuration {
uint8_t ssid[32];
char ssid[33];
size_t ssid_len;
uint32_t akm_suites;
char *passphrase;