[gnutls-devel] GnuTLS | Read Certificate Transparency (RFC 6962) SCT extension (!1367)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Fri Apr 2 15:49:27 CEST 2021




Ander Juaristi commented on a discussion on lib/x509/x509_ext.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1367#note_543897465

> +
> +int gnutls_x509_ct_sct_v1_get(const gnutls_x509_ct_scts_t scts, unsigned idx,
> +			      time_t *timestamp,
> +			      gnutls_datum_t *logid,
> +			      gnutls_sign_algorithm_t *sigalg,
> +			      gnutls_datum_t *signature)
> +{
> +	int retval = 0;
> +	struct ct_sct_st *sct;
> +
> +	if (idx >= scts->size)
> +		return GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE;
> +
> +	sct = &scts->scts[idx];
> +	if (sct->version != 0)
> +		return -1;

Same here. Any suggestions?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1367#note_543897465
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/20210402/64cc7d02/attachment-0001.html>


More information about the Gnutls-devel mailing list