From: Jukka Rissanen Date: Wed, 24 Aug 2011 14:01:55 +0000 (+0300) Subject: vpn: Set authentication failure error code properly in provider X-Git-Tag: 2.0_alpha~1176 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=70193f94b9eef32cda6f47278aefea43c5189e1e;p=framework%2Fconnectivity%2Fconnman.git 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. --- diff --git a/plugins/vpn.c b/plugins/vpn.c index e028b63..efeb959 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; } } diff --git a/plugins/vpn.h b/plugins/vpn.h index a45c718..6392aca 100644 --- a/plugins/vpn.h +++ b/plugins/vpn.h @@ -26,6 +26,7 @@ enum vpn_state { VPN_STATE_READY = 3, VPN_STATE_DISCONNECT = 4, VPN_STATE_FAILURE = 5, + VPN_STATE_AUTH_FAILURE = 6, }; struct vpn_driver {