summaryrefslogtreecommitdiff
path: root/plugins/vpn.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2011-08-24 17:01:55 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2011-09-12 11:40:46 +0200
commit70193f94b9eef32cda6f47278aefea43c5189e1e (patch)
treea13da696ff4b931af73dea91659b2cd4a741aa32 /plugins/vpn.c
parentf004c9084217b9cb33606ac565594b8d7a340c63 (diff)
downloadconnman-70193f94b9eef32cda6f47278aefea43c5189e1e.tar.gz
connman-70193f94b9eef32cda6f47278aefea43c5189e1e.tar.bz2
connman-70193f94b9eef32cda6f47278aefea43c5189e1e.zip
vpn: Set authentication failure error code properly in provider
This patch is needed so that we can catch the authentication error from vpn driver and inform the failure to user.
Diffstat (limited to 'plugins/vpn.c')
-rw-r--r--plugins/vpn.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/vpn.c b/plugins/vpn.c
index e028b63a..efeb9592 100644
--- a/plugins/vpn.c
+++ b/plugins/vpn.c
@@ -193,6 +193,11 @@ static void vpn_notify(struct connman_task *task,
connman_provider_set_state(provider,
CONNMAN_PROVIDER_STATE_DISCONNECT);
break;
+
+ case VPN_STATE_AUTH_FAILURE:
+ connman_provider_indicate_error(provider,
+ CONNMAN_PROVIDER_ERROR_AUTH_FAILED);
+ break;
}
}