cli: add allowed-auth bearer property in output
Given as a list of items, because the bearer can be created with one or more allowed authentication protocols.
This commit is contained in:
@@ -159,10 +159,12 @@ print_bearer_info (MMBearer *bearer)
|
||||
const gchar *user = NULL;
|
||||
const gchar *password = NULL;
|
||||
const gchar *rm_protocol = NULL;
|
||||
gchar *allowed_auth_str = NULL;
|
||||
|
||||
if (properties) {
|
||||
apn = mm_bearer_properties_get_apn (properties);
|
||||
ip_family_str = (properties ? mm_bearer_ip_family_build_string_from_mask (mm_bearer_properties_get_ip_type (properties)) : NULL);
|
||||
allowed_auth_str = (properties ? mm_bearer_allowed_auth_build_string_from_mask (mm_bearer_properties_get_allowed_auth (properties)) : NULL);
|
||||
user = mm_bearer_properties_get_user (properties);
|
||||
password = mm_bearer_properties_get_password (properties);
|
||||
if (mm_bearer_get_bearer_type (bearer) != MM_BEARER_TYPE_DEFAULT_ATTACH) {
|
||||
@@ -177,6 +179,7 @@ print_bearer_info (MMBearer *bearer)
|
||||
mmcli_output_string (MMC_F_BEARER_PROPERTIES_USER, user);
|
||||
mmcli_output_string (MMC_F_BEARER_PROPERTIES_PASSWORD, password);
|
||||
mmcli_output_string (MMC_F_BEARER_PROPERTIES_RM_PROTOCOL, rm_protocol);
|
||||
mmcli_output_string_list_take (MMC_F_BEARER_PROPERTIES_ALLOWED_AUTH, allowed_auth_str);
|
||||
}
|
||||
|
||||
/* IPv4 config */
|
||||
|
@@ -207,6 +207,7 @@ static FieldInfo field_infos[] = {
|
||||
[MMC_F_BEARER_PROPERTIES_APN] = { "bearer.properties.apn", "apn", MMC_S_BEARER_PROPERTIES, },
|
||||
[MMC_F_BEARER_PROPERTIES_ROAMING] = { "bearer.properties.roaming", "roaming", MMC_S_BEARER_PROPERTIES, },
|
||||
[MMC_F_BEARER_PROPERTIES_IP_TYPE] = { "bearer.properties.ip-type", "ip type", MMC_S_BEARER_PROPERTIES, },
|
||||
[MMC_F_BEARER_PROPERTIES_ALLOWED_AUTH] = { "bearer.properties.allowed-auth", "allowed-auth", MMC_S_BEARER_PROPERTIES, },
|
||||
[MMC_F_BEARER_PROPERTIES_USER] = { "bearer.properties.user", "user", MMC_S_BEARER_PROPERTIES, },
|
||||
[MMC_F_BEARER_PROPERTIES_PASSWORD] = { "bearer.properties.password", "password", MMC_S_BEARER_PROPERTIES, },
|
||||
[MMC_F_BEARER_PROPERTIES_NUMBER] = { "bearer.properties.number", "number", MMC_S_BEARER_PROPERTIES, },
|
||||
|
@@ -224,6 +224,7 @@ typedef enum {
|
||||
MMC_F_BEARER_PROPERTIES_APN,
|
||||
MMC_F_BEARER_PROPERTIES_ROAMING,
|
||||
MMC_F_BEARER_PROPERTIES_IP_TYPE,
|
||||
MMC_F_BEARER_PROPERTIES_ALLOWED_AUTH,
|
||||
MMC_F_BEARER_PROPERTIES_USER,
|
||||
MMC_F_BEARER_PROPERTIES_PASSWORD,
|
||||
MMC_F_BEARER_PROPERTIES_NUMBER,
|
||||
|
Reference in New Issue
Block a user