summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGiacinto Cifelli <gciofono@gmail.com>2018-10-06 07:45:17 +0200
committerDenis Kenzior <denkenz@gmail.com>2018-10-09 10:40:15 -0500
commit6cf24fe1f9cfa2a61422ad84abfdd32e7ea2cf78 (patch)
tree2c28abee9931392bf06ae2e1347fa0fd82ed918d /include
parentf2fa45b8300e2c377a9e9268d2dc7b85ac293a37 (diff)
downloadofono-6cf24fe1f9cfa2a61422ad84abfdd32e7ea2cf78.tar.gz
gprs-context: added OFONO_GPRS_AUTH_METHOD_NONE
This method makes explicit the lack of authentication. When selected, the username and password are ignored, but they are not changed in the user-defined properties for the context. This treatment is necessary to allow setting independently auth_method, username and password. This method is also selected implicitly when username is set to an empty string. Also this selection is done without changing the user-defined auth_method for the context, so that the behavior is consistent.
Diffstat (limited to 'include')
-rw-r--r--include/gprs-context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/gprs-context.h b/include/gprs-context.h
index 20ca9efc..8869c12e 100644
--- a/include/gprs-context.h
+++ b/include/gprs-context.h
@@ -57,6 +57,7 @@ enum ofono_gprs_context_type {
enum ofono_gprs_auth_method {
OFONO_GPRS_AUTH_METHOD_CHAP = 0,
OFONO_GPRS_AUTH_METHOD_PAP,
+ OFONO_GPRS_AUTH_METHOD_NONE,
};
struct ofono_gprs_primary_context {