diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-11-04 22:40:28 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-11-04 22:40:28 +0100 |
commit | 3444b029324bb2bd54a6bbd486792d49619e9383 (patch) | |
tree | f108eec531e7fd38b3fa2b70382d2a52dcbc7670 /src/mm-context.c | |
parent | eae2e28577c53e8deaa25d46d6032d5132be6b58 (diff) |
core: replace 'whitelist' with 'allowlist' and 'blacklist' with 'blocklist'
We keep the 'WHITELIST-ONLY' filter type name still as an option in
--filter-policy=[POLICY], but deprecated and with the better
'ALLOWLIST-ONLY' replacement suggested from now on.
Diffstat (limited to 'src/mm-context.c')
-rw-r--r-- | src/mm-context.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mm-context.c b/src/mm-context.c index 8c341667..e86c57da 100644 --- a/src/mm-context.c +++ b/src/mm-context.c @@ -48,8 +48,12 @@ filter_policy_option_arg (const gchar *option_name, gpointer data, GError **error) { - if (!g_ascii_strcasecmp (value, "whitelist-only")) { - filter_policy = MM_FILTER_POLICY_WHITELIST_ONLY; + if (!g_ascii_strcasecmp (value, "allowlist-only") +#ifndef MM_DISABLE_DEPRECATED + || !g_ascii_strcasecmp (value, "whitelist-only") +#endif + ) { + filter_policy = MM_FILTER_POLICY_ALLOWLIST_ONLY; return TRUE; } @@ -67,7 +71,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 WHITELIST-ONLY, STRICT", + "Filter policy: one of ALLOWLIST-ONLY, STRICT", "[POLICY]" }, { |