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:
@@ -498,10 +498,10 @@ authenticate_3gpp (GTask *task)
|
||||
mm_obj_dbg (self, "using automatic authentication method");
|
||||
if (self->priv->allowed_auths & MM_UBLOX_BEARER_ALLOWED_AUTH_AUTO)
|
||||
ublox_auth = 3;
|
||||
else if (self->priv->allowed_auths & MM_UBLOX_BEARER_ALLOWED_AUTH_PAP)
|
||||
ublox_auth = 1;
|
||||
else if (self->priv->allowed_auths & MM_UBLOX_BEARER_ALLOWED_AUTH_CHAP)
|
||||
ublox_auth = 2;
|
||||
else if (self->priv->allowed_auths & MM_UBLOX_BEARER_ALLOWED_AUTH_PAP)
|
||||
ublox_auth = 1;
|
||||
else if (self->priv->allowed_auths & MM_UBLOX_BEARER_ALLOWED_AUTH_NONE)
|
||||
ublox_auth = 0;
|
||||
} else if (allowed_auth & MM_BEARER_ALLOWED_AUTH_PAP) {
|
||||
|
||||
Reference in New Issue
Block a user