mirror of
https://github.com/sailfishos/ofono
synced 2025-11-28 21:51:05 +08:00
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.
This commit is contained in:
committed by
Adam Pigg
parent
c2dd50232f
commit
e60c6b16ff
@@ -60,6 +60,7 @@ enum ofono_gprs_auth_method {
|
|||||||
OFONO_GPRS_AUTH_METHOD_NONE,
|
OFONO_GPRS_AUTH_METHOD_NONE,
|
||||||
OFONO_GPRS_AUTH_METHOD_CHAP,
|
OFONO_GPRS_AUTH_METHOD_CHAP,
|
||||||
OFONO_GPRS_AUTH_METHOD_PAP,
|
OFONO_GPRS_AUTH_METHOD_PAP,
|
||||||
|
OFONO_GPRS_AUTH_METHOD_NONE,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ofono_gprs_primary_context {
|
struct ofono_gprs_primary_context {
|
||||||
|
|||||||
Reference in New Issue
Block a user