diff options
author | hyunuktak <hyunuk.tak@samsung.com> | 2016-06-22 19:38:56 +0900 |
---|---|---|
committer | hyunuktak <hyunuk.tak@samsung.com> | 2016-06-22 19:39:05 +0900 |
commit | 267b65463cd3fd93a1ed245b527fca14fe469f07 (patch) | |
tree | 153f1a5ecc553869505307462724bbb39b6357db /src/agent-connman.c | |
parent | e0c6508191296071b1f84adc9a9dbb3ac6d530ad (diff) | |
download | connman-267b65463cd3fd93a1ed245b527fca14fe469f07.tar.gz connman-267b65463cd3fd93a1ed245b527fca14fe469f07.tar.bz2 connman-267b65463cd3fd93a1ed245b527fca14fe469f07.zip |
Remove some features and modify service filesubmit/tizen/20160624.012559accepted/tizen/wearable/20160624.064357accepted/tizen/tv/20160624.064037accepted/tizen/mobile/20160624.064052accepted/tizen/ivi/20160624.064339accepted/tizen/common/20160624.132425
Change-Id: Id3697d995e4db5d6f03cdf182825d5f61136e235
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Diffstat (limited to 'src/agent-connman.c')
-rwxr-xr-x | src/agent-connman.c | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/src/agent-connman.c b/src/agent-connman.c index 04f95df3..177cbe0a 100755 --- a/src/agent-connman.c +++ b/src/agent-connman.c @@ -595,73 +595,6 @@ int __connman_agent_request_login_input(struct connman_service *service, return -EINPROGRESS; } -#if defined TIZEN_CONNMAN_USE_BLACKLIST -dbus_bool_t __connman_agent_request_blacklist_check( - const char *name, const char *security, const char *eap) -{ - DBusMessage *message; - DBusMessage *reply; - DBusMessageIter iter; - DBusError error; - dbus_bool_t allowed = TRUE; - const char *no_eap = ""; - - if (agent_path == NULL) { - DBG("agent is not registered"); - return FALSE; - } - - if (name == NULL || security == NULL) - return FALSE; - - message = dbus_message_new_method_call(agent_sender, agent_path, - "net.netconfig.wifi", - "CheckBlackList"); - if (message == NULL) { - DBG("dbus_message_new_method_call() failed"); - return TRUE; - } - - dbus_message_iter_init_append(message, &iter); - dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, &name); - dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, &security); - - if (eap) - dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, &eap); - else - dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, &no_eap); - - dbus_error_init(&error); - - reply = dbus_connection_send_with_reply_and_block(connection, message, 2000, &error); - if (reply == NULL) { - if (dbus_error_is_set(&error) == TRUE) { - DBG("dbus_connection_send_with_reply_and_block() failed. " - "dbus error [%s: %s]", error.name, error.message); - - dbus_error_free(&error); - } else - DBG("failed to get properties"); - - dbus_message_unref(message); - - return TRUE; - } - - if (dbus_message_get_type(reply) == DBUS_MESSAGE_TYPE_ERROR) { - DBG("failed to request blacklist check"); - return TRUE; - } - - dbus_message_iter_init(reply, &iter); - dbus_message_iter_get_basic(&iter, &allowed); - - dbus_message_unref(message); - - return allowed; -} -#endif - struct request_browser_reply_data { struct connman_service *service; browser_authentication_cb_t callback; |