When no auth module is specified, use our table of defaults to look up the
default value of the check instead of always allowing everything. This was
we can disallow client settings by default.
return res;
}
+static gboolean
+no_auth_check (const gchar * check)
+{
+ gboolean res;
+
+ if (g_str_equal (check, GST_RTSP_AUTH_CHECK_TRANSPORT_CLIENT_SETTINGS))
+ res = FALSE;
+ else
+ res = TRUE;
+
+ return res;
+}
+
/**
* gst_rtsp_auth_check:
* @check: the item to check
/* no auth, we don't need to check */
if (!(auth = state->auth))
- return TRUE;
+ return no_auth_check (check);
klass = GST_RTSP_AUTH_GET_CLASS (auth);