diff options
author | Giacinto Cifelli <gciofono@gmail.com> | 2018-10-06 07:45:18 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2018-10-09 10:43:01 -0500 |
commit | cc79162470eab45523f0af2df98bcfe13ba53348 (patch) | |
tree | 6685a938e80d28106324d44f9c3a5f33c62d0ade /src/gprs.c | |
parent | 6cf24fe1f9cfa2a61422ad84abfdd32e7ea2cf78 (diff) | |
download | ofono-cc79162470eab45523f0af2df98bcfe13ba53348.tar.gz |
gprs: support for NONE auth type
Diffstat (limited to 'src/gprs.c')
-rw-r--r-- | src/gprs.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -261,6 +261,8 @@ 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"; }; return NULL; @@ -275,6 +277,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; |