diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-10-07 20:19:13 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-10-07 21:12:00 +0200 |
commit | ebd792d2aaa0917a6628eb1f9c1fbeedafbf2617 (patch) | |
tree | d8b5c542ffaa6951ab7d921427fbd1cfd42ca52e /include | |
parent | 7ae18eecdd3c0aae851441d970b3a54319dd3404 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/ModemManager-enums.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/ModemManager-enums.h b/include/ModemManager-enums.h index 129a30f8..ad74037f 100644 --- a/include/ModemManager-enums.h +++ b/include/ModemManager-enums.h @@ -552,6 +552,29 @@ typedef enum { /*< underscore_name=mm_bearer_ip_family >*/ } 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. * @MM_MODEM_CDMA_REGISTRATION_STATE_REGISTERED: Registered, but roaming status is unknown or cannot be provided by the device. The device may or may not be roaming. |