From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5324466693602629411==" MIME-Version: 1.0 From: Giacinto Cifelli Subject: [PATCH 3/5] src/gprs: support for NONE auth Date: Sat, 06 Oct 2018 07:45:18 +0200 Message-ID: <20181006054520.26737-3-gciofono@gmail.com> In-Reply-To: <20181006054520.26737-1-gciofono@gmail.com> List-Id: To: ofono@ofono.org --===============5324466693602629411== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable --- src/gprs.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gprs.c b/src/gprs.c index 79fafdbc..235c8884 100644 --- a/src/gprs.c +++ b/src/gprs.c @@ -261,6 +261,10 @@ static const char *gprs_auth_method_to_string(enum ofo= no_gprs_auth_method auth) return "chap"; case OFONO_GPRS_AUTH_METHOD_PAP: return "pap"; + case OFONO_GPRS_AUTH_METHOD_NONE: + return "none"; + default: + return NULL; }; = return NULL; @@ -275,6 +279,9 @@ static gboolean gprs_auth_method_from_string(const char= *str, } else if (g_str_equal(str, "pap")) { *auth =3D OFONO_GPRS_AUTH_METHOD_PAP; return TRUE; + } else if (g_str_equal(str, "none")) { + *auth =3D OFONO_GPRS_AUTH_METHOD_NONE; + return TRUE; } = return FALSE; -- = 2.17.1 --===============5324466693602629411==--