aboutsummaryrefslogtreecommitdiff
path: root/src/mm-context.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-06-16 10:06:43 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-06-16 11:59:42 +0200
commit00c1bbfd570492ff6661cfdda8d8a0dcb0e087a4 (patch)
treec6080cd43cc6edadf344934125831a5557c4fca9 /src/mm-context.c
parenta02cd5ee934726d332fda39d76ba3dc4130a56b6 (diff)
filter: remove LEGACY and PARANOID filter types
Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/390
Diffstat (limited to 'src/mm-context.c')
-rw-r--r--src/mm-context.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/mm-context.c b/src/mm-context.c
index ddc37a33..cfabcbdb 100644
--- a/src/mm-context.c
+++ b/src/mm-context.c
@@ -48,11 +48,6 @@ filter_policy_option_arg (const gchar *option_name,
gpointer data,
GError **error)
{
- if (!g_ascii_strcasecmp (value, "legacy")) {
- filter_policy = MM_FILTER_POLICY_LEGACY;
- return TRUE;
- }
-
if (!g_ascii_strcasecmp (value, "whitelist-only")) {
filter_policy = MM_FILTER_POLICY_WHITELIST_ONLY;
return TRUE;
@@ -63,11 +58,6 @@ filter_policy_option_arg (const gchar *option_name,
return TRUE;
}
- if (!g_ascii_strcasecmp (value, "paranoid")) {
- filter_policy = MM_FILTER_POLICY_PARANOID;
- return TRUE;
- }
-
g_set_error (error, MM_CORE_ERROR, MM_CORE_ERROR_FAILED,
"Invalid filter policy value given: %s",
value);
@@ -77,7 +67,7 @@ filter_policy_option_arg (const gchar *option_name,
static const GOptionEntry entries[] = {
{
"filter-policy", 0, 0, G_OPTION_ARG_CALLBACK, filter_policy_option_arg,
- "Filter policy: one of LEGACY, WHITELIST-ONLY, STRICT, PARANOID",
+ "Filter policy: one of WHITELIST-ONLY, STRICT",
"[POLICY]"
},
{