aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Prestwood <prestwoj@gmail.com>2023-11-16 11:15:26 -0800
committerDenis Kenzior <denkenz@gmail.com>2023-11-17 09:44:36 -0600
commit00ffb056e88b45de058f32ff43bcfccd3116b5ed (patch)
treeaa742824f5027310980775636dc60817cac7b2dd
parentaa116ba5229a2b355db2898c518da01e0c4a918b (diff)
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.
-rw-r--r--src/dpp-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dpp-util.h b/src/dpp-util.h
index 053caf8c9..0724ee44a 100644
--- a/src/dpp-util.h
+++ b/src/dpp-util.h
@@ -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;