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:
Giacinto Cifelli
2018-10-06 07:45:17 +02:00
committed by Adam Pigg
parent c2dd50232f
commit e60c6b16ff

View File

@@ -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 {