static void request_input_passphrase_reply(DBusPendingCall *call, void *user_data)
{
struct request_input_reply *passphrase_reply = user_data;
+ connman_bool_t values_received = FALSE;
connman_bool_t wps = FALSE;
char *identity = NULL;
char *passphrase = NULL;
if (dbus_message_get_type(reply) == DBUS_MESSAGE_TYPE_ERROR)
goto done;
+ values_received = TRUE;
+
dbus_message_iter_init(reply, &iter);
dbus_message_iter_recurse(&iter, &dict);
while (dbus_message_iter_get_arg_type(&dict) == DBUS_TYPE_DICT_ENTRY) {
}
done:
- passphrase_reply->callback(passphrase_reply->service, identity,
- passphrase, passphrase_reply->user_data);
+ passphrase_reply->callback(passphrase_reply->service, values_received,
+ identity, passphrase,
+ passphrase_reply->user_data);
connman_service_unref(passphrase_reply->service);
dbus_message_unref(reply);
g_free(passphrase_reply);
done:
username_password_reply->callback(username_password_reply->service,
+ TRUE,
username, password,
username_password_reply->user_data);
connman_service_unref(username_password_reply->service);
struct connman_service;
typedef void (* authentication_cb_t) (struct connman_service *service,
+ connman_bool_t values_received,
const char *identifier, const char *secret,
void *user_data);
typedef void (* report_error_cb_t) (struct connman_service *service,