[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
Tue Mar 14 14:47:06 CET 2023
Daiki Ueno commented on a discussion on lib/pkcs11.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1725#note_1313360546
> }
>
> +time_t _gnutls_utcTime2gtime(const char *ttime);
> +
> +static time_t
> +get_distrust_after(struct pkcs11_session_info *sinfo,
> + ck_object_handle_t object, enum distrust_purpose purpose)
> +{
> + /* the attribute is in a fixed format: utcTime with seconds */
> + char buf[14];
> + struct ck_attribute a[1];
> +
> + if (purpose == PKCS11_DISTRUST_AFTER_SERVER) {
> + a[0].type = CKA_NSS_SERVER_DISTRUST_AFTER;
> + } else {
> + a[0].type = CKA_NSS_EMAIL_DISTRUST_AFTER;
I agree; fixed.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1725#note_1313360546
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/20230314/3ee32a88/attachment.html>
More information about the Gnutls-devel
mailing list