[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:10 CEST 2021




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

> +
> +int gnutls_x509_ct_sct_get_version(gnutls_x509_ct_scts_t scts, unsigned idx,
> +				   unsigned int *version_out)
> +{
> +	int version;
> +
> +	if (idx >= scts->size)
> +		return GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE;
> +
> +	/*
> +	 * Currently, only version 1 SCTs are defined (RFC 6962).
> +	 * A version 1 SCT has actually the value 0 in the 'version' field.
> +	 */
> +	version = scts->scts[idx].version;
> +	if (version != 0 || version_out == NULL)
> +		return -1;

@dueno I've looked at them but I don't know which one would be the most appropriate? Any suggestions?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1367#note_543897301
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/1fd70e4b/attachment.html>


More information about the Gnutls-devel mailing list