api,libmm-glib: new `allowed-auth' configuration for bearers

For bearers using STATIC or DHCP IP method, the modem itself is the one
negotiating authentication with the network. The new `allowed-auth' property
allows users to specify which authentication method(s) are allowed to be used.

See the following NetworkManager commit for more reference:
    commit 34aef8aaaa09b7473b9496aa49e550bd2def03f8
    Author: Andrew Bird <ajb@spheresystems.co.uk>
    Date:   Thu Mar 15 16:19:43 2012 -0500
This commit is contained in:
Aleksander Morgado
2012-10-07 21:12:00 +02:00
parent 7ae18eecdd
commit ebd792d2aa
11 changed files with 233 additions and 31 deletions
+23
View File
@@ -551,6 +551,29 @@ typedef enum { /*< underscore_name=mm_bearer_ip_family >*/
MM_BEARER_IP_FAMILY_IPV4V6 = 10
} MMBearerIpFamily;
/**
* MMBearerAllowedAuth:
* @MM_BEARER_ALLOWED_AUTH_UNKNOWN: Unknown.
* @MM_BEARER_ALLOWED_AUTH_NONE: None.
* @MM_BEARER_ALLOWED_AUTH_PAP: PAP.
* @MM_BEARER_ALLOWED_AUTH_CHAP: CHAP.
* @MM_BEARER_ALLOWED_AUTH_MSCHAP: MS-CHAP.
* @MM_BEARER_ALLOWED_AUTH_MSCHAPV2: MS-CHAP v2.
* @MM_BEARER_ALLOWED_AUTH_EAP: EAP.
*
* Allowed authentication methods when authenticating with the network.
*/
typedef enum { /*< underscore_name=mm_bearer_allowed_auth >*/
MM_BEARER_ALLOWED_AUTH_UNKNOWN = 0,
/* bits 0..4 order match Ericsson device bitmap */
MM_BEARER_ALLOWED_AUTH_NONE = 1 << 0,
MM_BEARER_ALLOWED_AUTH_PAP = 1 << 1,
MM_BEARER_ALLOWED_AUTH_CHAP = 1 << 2,
MM_BEARER_ALLOWED_AUTH_MSCHAP = 1 << 3,
MM_BEARER_ALLOWED_AUTH_MSCHAPV2 = 1 << 4,
MM_BEARER_ALLOWED_AUTH_EAP = 1 << 5,
} MMBearerAllowedAuth;
/**
* MMModemCdmaRegistrationState:
* @MM_MODEM_CDMA_REGISTRATION_STATE_UNKNOWN: Registration status is unknown or the device is not registered.