[gnutls-devel] GnuTLS | Make RSA modulus size restrictions configurable (!1624)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Tue Aug 9 14:45:31 CEST 2022




Alexander Sosedkin started a new discussion on lib/priority.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1624#note_1055499492

>  			ctx->curves = tmp;
>  			ctx->curves[ctx->curves_size] = curve;
>  			ctx->curves_size++;
> +		} else if (c_strcasecmp(name, "min-rsa-size")==0) {
> +			char *endptr;
> +
> +			cfg->min_rsa_size = strtoul(value, &endptr, 10);

> Since strtoul() can legitimately return 0 or ULONG_MAX (ULLONG_MAX for strtoull()) on both success and failure, **the calling program should set errno to 0 before the call**, and then determine if an error occurred by checking whether errno has a nonzero value after the call.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1624#note_1055499492
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/20220809/c2414d4c/attachment.html>


More information about the Gnutls-devel mailing list