From e2a36bd6bec59f361b528ff861835e5bd2e6e39e Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 10 Oct 2012 16:55:24 +0200 Subject: libmm-glib: allow 'none' authentication with more values Specifying 'none' is really not exclusive. We may want to say that the modem can either authenticate with a given protocol, or otherwise just try without authentication. The reality is that 'none' itself is usually always given in the connection settings. --- libmm-glib/mm-common-helpers.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'libmm-glib/mm-common-helpers.c') diff --git a/libmm-glib/mm-common-helpers.c b/libmm-glib/mm-common-helpers.c index f32a83a0..9cfb842e 100644 --- a/libmm-glib/mm-common-helpers.c +++ b/libmm-glib/mm-common-helpers.c @@ -462,16 +462,6 @@ mm_common_get_allowed_auth_from_string (const gchar *str, allowed_auth = MM_BEARER_ALLOWED_AUTH_UNKNOWN; } - /* 'none' is a special value which, if given, must be given alone */ - if (allowed_auth & MM_BEARER_ALLOWED_AUTH_NONE && - allowed_auth != MM_BEARER_ALLOWED_AUTH_NONE) { - g_set_error (error, - MM_CORE_ERROR, - MM_CORE_ERROR_INVALID_ARGS, - "Allowed auth 'none' cannot be given along with other values"); - allowed_auth = MM_BEARER_ALLOWED_AUTH_UNKNOWN; - } - g_type_class_unref (flags_class); g_strfreev (strings); return allowed_auth; -- cgit v1.2.3-70-g09d2