]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
dbus: Expose availability of SHA384 on D-Bus
authorLubomir Rintel <lkundrak@v3.sk>
Sun, 7 Oct 2018 14:57:27 +0000 (16:57 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 24 Nov 2018 16:18:25 +0000 (18:18 +0200)
This lets us know whether we can attempt to use FT-EAP-SHA384.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
wpa_supplicant/dbus/dbus_new_handlers.c

index fa461c357aa6be259f106fc1b6dbfe9bb47b309e..94773b329133026fdf3f1942a823117c7023670c 100644 (file)
@@ -980,8 +980,8 @@ dbus_bool_t wpas_dbus_getter_global_capabilities(
        const struct wpa_dbus_property_desc *property_desc,
        DBusMessageIter *iter, DBusError *error, void *user_data)
 {
-       const char *capabilities[9] = { NULL, NULL, NULL, NULL, NULL, NULL,
-                                       NULL, NULL, NULL };
+       const char *capabilities[10] = { NULL, NULL, NULL, NULL, NULL, NULL,
+                                       NULL, NULL, NULL, NULL };
        size_t num_items = 0;
 #ifdef CONFIG_FILS
        struct wpa_global *global = user_data;
@@ -1023,6 +1023,9 @@ dbus_bool_t wpas_dbus_getter_global_capabilities(
 #ifdef CONFIG_IEEE80211R
        capabilities[num_items++] = "ft";
 #endif /* CONFIG_IEEE80211R */
+#ifdef CONFIG_SHA384
+       capabilities[num_items++] = "sha384";
+#endif /* CONFIG_SHA384 */
 
        return wpas_dbus_simple_array_property_getter(iter,
                                                      DBUS_TYPE_STRING,