changed default authentication algorithm to CHAP
CHAP is almost universal nowadays, and so it is a better default than PAP Not changed for uBlox, that prefers an error if not specified, and for Huawei, which uses NONE with user/pwd and has 2 CHAP choices
This commit is contained in:
@@ -526,14 +526,14 @@ authenticate (GTask *task)
|
||||
guint hso_auth;
|
||||
|
||||
if (allowed_auth == MM_BEARER_ALLOWED_AUTH_UNKNOWN) {
|
||||
mm_obj_dbg (self, "using default (PAP) authentication method");
|
||||
hso_auth = 1;
|
||||
} else if (allowed_auth & MM_BEARER_ALLOWED_AUTH_PAP) {
|
||||
mm_obj_dbg (self, "using PAP authentication method");
|
||||
hso_auth = 1;
|
||||
mm_obj_dbg (self, "using default (CHAP) authentication method");
|
||||
hso_auth = 2;
|
||||
} else if (allowed_auth & MM_BEARER_ALLOWED_AUTH_CHAP) {
|
||||
mm_obj_dbg (self, "using CHAP authentication method");
|
||||
hso_auth = 2;
|
||||
} else if (allowed_auth & MM_BEARER_ALLOWED_AUTH_PAP) {
|
||||
mm_obj_dbg (self, "using PAP authentication method");
|
||||
hso_auth = 1;
|
||||
} else {
|
||||
gchar *str;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user