[gnutls-devel] GnuTLS | pkcs11: respect Mozilla's time-based distrust upon issuer lookup (!1725)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Thu Mar 16 22:28:47 CET 2023




Daiki Ueno commented on a discussion on lib/pkcs11.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1725#note_1317688472

>  	return GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE;
>  }
>  
> +static enum distrust_purpose distrust_purpose_from_oid(const char *oid)
> +{
> +	static const struct {

The `static` here is meant to be that the table is allocated in the text segment of the program, not on the stack every time the function is called, though in this case it might not matter, as the table is small.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1725#note_1317688472
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/20230316/2ecaad1d/attachment-0001.html>


More information about the Gnutls-devel mailing list