[gnutls-devel] GnuTLS | priority: support allowlisting in configuration file (!1427)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Sat Nov 13 18:22:56 CET 2021




Tim Rühsen started a new discussion on lib/algorithms/ecc.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1427#note_732514055

> +	}
> +}
> +
> +/**
> + * gnutls_ecc_curve_mark_enabled:
> + * @curve: is an ECC curve
> + *
> + * Mark @curve as disabled system wide. This setting can be reverted with
> + * gnutls_ecc_curve_mark_enabled(). This only works if the configuration file
> + * uses the allowlisting mode.
> + *
> + * Returns: 0 on success or negative error code otherwise.
> + *
> + * Since: 3.7.3
> + */
> +int gnutls_ecc_curve_mark_disabled(gnutls_ecc_curve_t curve)

The `..._mark_disabled` and `..._mark_enabled` functions introduce a lot of code duplication. Maybe introduce helper functions that take a bool value 'enabled' !?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1427#note_732514055
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/20211113/5c0e79fe/attachment.html>


More information about the Gnutls-devel mailing list