summaryrefslogtreecommitdiff
path: root/gatchat/gatppp.c
diff options
context:
space:
mode:
authorGiacinto Cifelli <gciofono@gmail.com>2018-10-03 05:32:15 +0200
committerDenis Kenzior <denkenz@gmail.com>2018-10-03 11:44:03 -0500
commit6fc119d9eaee5f9cc37a5a7198d1c55ef98fd645 (patch)
tree0786f0dc52bfcacd5ccd71688490760df462cb73 /gatchat/gatppp.c
parent3317cc6f45da12a3c31a249658497f0505329c4d (diff)
downloadofono-6fc119d9eaee5f9cc37a5a7198d1c55ef98fd645.tar.gz
gatchat: support for auth NONE
Added authentication method G_AT_PPP_AUTH_METHOD_NONE and its handling.
Diffstat (limited to 'gatchat/gatppp.c')
-rw-r--r--gatchat/gatppp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c
index 4a80b4b3..141e2746 100644
--- a/gatchat/gatppp.c
+++ b/gatchat/gatppp.c
@@ -615,7 +615,8 @@ const char *g_at_ppp_get_password(GAtPPP *ppp)
gboolean g_at_ppp_set_auth_method(GAtPPP *ppp, GAtPPPAuthMethod method)
{
if (method != G_AT_PPP_AUTH_METHOD_CHAP &&
- method != G_AT_PPP_AUTH_METHOD_PAP)
+ method != G_AT_PPP_AUTH_METHOD_PAP &&
+ method != G_AT_PPP_AUTH_METHOD_NONE)
return FALSE;
ppp->auth_method = method;