From: Giacinto Cifelli <gciofono@gmail.com>
To: ofono@ofono.org
Subject: [PATCH 3/6] src/gprs: support for NONE auth
Date: Tue, 02 Oct 2018 08:26:26 +0200 [thread overview]
Message-ID: <20181002062628.17466-4-gciofono@gmail.com> (raw)
In-Reply-To: <20181002062628.17466-1-gciofono@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
---
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 ofono_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 = OFONO_GPRS_AUTH_METHOD_PAP;
return TRUE;
+ } else if (g_str_equal(str, "none")) {
+ *auth = OFONO_GPRS_AUTH_METHOD_NONE;
+ return TRUE;
}
return FALSE;
--
2.17.1
next prev parent reply other threads:[~2018-10-02 6:26 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-02 6:26 [PATCH 1/6] connman-api: added "none" auth_method Giacinto Cifelli
2018-10-02 6:26 ` [PATCH 2/6] gprs-context: added OFONO_GPRS_AUTH_METHOD_NONE Giacinto Cifelli
2018-10-02 6:26 ` [PATCH 4/6] plugins/file-provisioning.c: support for auth NONE Giacinto Cifelli
2018-10-02 6:26 ` Giacinto Cifelli [this message]
2018-10-02 6:26 ` [PATCH 5/6] gatchat: " Giacinto Cifelli
2018-10-02 23:26 ` Denis Kenzior
2018-10-02 6:26 ` [PATCH 6/6] drivers: " Giacinto Cifelli
2018-10-03 21:29 ` Denis Kenzior
2018-10-04 3:44 ` Giacinto Cifelli
2018-10-04 4:40 ` Denis Kenzior
2018-10-04 4:51 ` Giacinto Cifelli
2018-10-05 2:04 ` Denis Kenzior
2018-10-05 2:07 ` Giacinto Cifelli
2018-10-04 4:43 ` Giacinto Cifelli
2018-10-05 2:20 ` Denis Kenzior
2018-10-05 2:23 ` Giacinto Cifelli
2018-10-05 2:47 ` Denis Kenzior
2018-10-05 2:51 ` Giacinto Cifelli
2018-10-05 3:23 ` Denis Kenzior
2018-10-05 3:30 ` Giacinto Cifelli
2018-10-05 3:37 ` Denis Kenzior
2018-10-05 3:54 ` Giacinto Cifelli
2018-10-05 4:09 ` Denis Kenzior
2018-10-05 4:13 ` Giacinto Cifelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181002062628.17466-4-gciofono@gmail.com \
--to=gciofono@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox