[gnutls-devel] GnuTLS | restrict allowlisting api to before priority string initialization (!1533)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Tue Aug 16 06:33:28 CEST 2022




Daiki Ueno started a new discussion on lib/priority.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1533#note_1065548146

> +/*
> + * high-level interface for overriding configuration files
> + */
> +
> +static inline bool /* not locking system_wide_config */
> +system_wide_config_is_malleable(void) {
> +	if (!system_wide_config.allowlisting) {
> +		_gnutls_audit_log(NULL, "allowlisting is not enabled!\n");
> +		return 0;
> +	}
> +	if (system_wide_config.priority_string) {
> +		_gnutls_audit_log(NULL, "priority strings have already been "
> +				"initialized!\n");
> +		return 0;
> +	}
> +	return 1;

nit: `true` / `false`?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1533#note_1065548146
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20220816/59e567d7/attachment.html>


More information about the Gnutls-devel mailing list