[gnutls-devel] GnuTLS | Fix RSAES-PKCS1-v1_5 system-wide configuration (!1830)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Thu Apr 11 01:49:35 CEST 2024

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

>  	}
>  	if (stat(system_priority_file, &sb) < 0) {
> +		/* if there is no config enable RSA-PKCS1-V1_5 by default */
> +		system_wide_config.allow_rsa_pkcs1_encrypt = true;

Perhaps it might make sense to create a function, say `cfg_init`, to initialize `struct cfg` taking into account of the default value? That way we wouldn't need to scatter this assignment multiple places.

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1830#note_1856403498
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/20240410/592fec51/attachment.html>

More information about the Gnutls-devel mailing list