Fix build with CONFIG_NO_CONFIG_BLOBS
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
7d37a357fa
commit
21f01a8e3d
5 changed files with 15 additions and 0 deletions
|
@ -2430,6 +2430,7 @@ static const struct wpa_dbus_method_desc wpas_dbus_interface_methods[] = {
|
|||
END_ARGS
|
||||
}
|
||||
},
|
||||
#ifndef CONFIG_NO_CONFIG_BLOBS
|
||||
{ "AddBlob", WPAS_DBUS_NEW_IFACE_INTERFACE,
|
||||
(WPADBusMethodHandler) &wpas_dbus_handler_add_blob,
|
||||
{
|
||||
|
@ -2453,6 +2454,7 @@ static const struct wpa_dbus_method_desc wpas_dbus_interface_methods[] = {
|
|||
END_ARGS
|
||||
}
|
||||
},
|
||||
#endif /* CONFIG_NO_CONFIG_BLOBS */
|
||||
#ifdef CONFIG_WPS
|
||||
{ "Start", WPAS_DBUS_NEW_IFACE_WPS,
|
||||
(WPADBusMethodHandler) &wpas_dbus_handler_wps_start,
|
||||
|
|
|
@ -1696,6 +1696,8 @@ out:
|
|||
}
|
||||
|
||||
|
||||
#ifndef CONFIG_NO_CONFIG_BLOBS
|
||||
|
||||
/**
|
||||
* wpas_dbus_handler_add_blob - Store named binary blob (ie, for certificates)
|
||||
* @message: Pointer to incoming dbus message
|
||||
|
@ -1860,6 +1862,9 @@ DBusMessage * wpas_dbus_handler_remove_blob(DBusMessage *message,
|
|||
|
||||
}
|
||||
|
||||
#endif /* CONFIG_NO_CONFIG_BLOBS */
|
||||
|
||||
|
||||
/*
|
||||
* wpas_dbus_handler_flush_bss - Flush the BSS cache
|
||||
* @message: Pointer to incoming dbus message
|
||||
|
|
|
@ -268,10 +268,12 @@ static DBusHandlerResult wpas_iface_message_handler(DBusConnection *connection,
|
|||
reply = wpas_dbus_iface_get_state(message, wpa_s);
|
||||
else if (!strcmp(method, "scanning"))
|
||||
reply = wpas_dbus_iface_get_scanning(message, wpa_s);
|
||||
#ifndef CONFIG_NO_CONFIG_BLOBS
|
||||
else if (!strcmp(method, "setBlobs"))
|
||||
reply = wpas_dbus_iface_set_blobs(message, wpa_s);
|
||||
else if (!strcmp(method, "removeBlobs"))
|
||||
reply = wpas_dbus_iface_remove_blobs(message, wpa_s);
|
||||
#endif /* CONFIG_NO_CONFIG_BLOBS */
|
||||
#ifdef CONFIG_WPS
|
||||
else if (!os_strcmp(method, "wpsPbc"))
|
||||
reply = wpas_dbus_iface_wps_pbc(message, wpa_s);
|
||||
|
|
|
@ -1300,6 +1300,8 @@ DBusMessage * wpas_dbus_iface_get_scanning(DBusMessage *message,
|
|||
}
|
||||
|
||||
|
||||
#ifndef CONFIG_NO_CONFIG_BLOBS
|
||||
|
||||
/**
|
||||
* wpas_dbus_iface_set_blobs - Store named binary blobs (ie, for certificates)
|
||||
* @message: Pointer to incoming dbus message
|
||||
|
@ -1429,6 +1431,8 @@ DBusMessage * wpas_dbus_iface_remove_blobs(DBusMessage *message,
|
|||
return wpas_dbus_new_success_reply(message);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_NO_CONFIG_BLOBS */
|
||||
|
||||
|
||||
/**
|
||||
* wpas_dbus_iface_flush - Clear BSS of old or all inactive entries
|
||||
|
|
|
@ -798,8 +798,10 @@ int wpa_supplicant_init_eapol(struct wpa_supplicant *wpa_s)
|
|||
ctx->eapol_done_cb = wpa_supplicant_notify_eapol_done;
|
||||
ctx->eapol_send = wpa_supplicant_eapol_send;
|
||||
ctx->set_wep_key = wpa_eapol_set_wep_key;
|
||||
#ifndef CONFIG_NO_CONFIG_BLOBS
|
||||
ctx->set_config_blob = wpa_supplicant_set_config_blob;
|
||||
ctx->get_config_blob = wpa_supplicant_get_config_blob;
|
||||
#endif /* CONFIG_NO_CONFIG_BLOBS */
|
||||
ctx->aborted_cached = wpa_supplicant_aborted_cached;
|
||||
ctx->opensc_engine_path = wpa_s->conf->opensc_engine_path;
|
||||
ctx->pkcs11_engine_path = wpa_s->conf->pkcs11_engine_path;
|
||||
|
|
Loading…
Reference in a new issue