[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
Sun Mar 21 21:37:37 CET 2021
Ander Juaristi commented on a discussion on lib/x509/x509_ext.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1367#note_534270512
> + * gnutls_x509_ext_ct_import_scts:
> + * @ext: a DER-encoded extension
> + * @scts: The SCT list
> + *
> + * This function will read a SignedCertificateTimestampList structure
> + * from the DER data of the X.509 Certificate Transparency SCT extension
> + * (OID 18.104.22.168.4.1.1122.214.171.124).
> + *
> + * The list of SCTs (Signed Certificate Timestamps) is placed on @scts,
> + * which must be previously initialized with gnutls_x509_ext_ct_scts_init().
> + *
> + * Returns: %GNUTLS_E_SUCCESS (0) on success or a negative error value.
> + **/
> +int gnutls_x509_ext_ct_import_scts(const gnutls_datum_t *ext, gnutls_x509_ct_scts_t scts)
I'm seeing in other `_import` functions the data comes last, but this function follows the order of the other `_import` functions defined in `x509_ext.c`. Looks like in the functions that read X.509 extensions the data (`ext`) comes first.
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1367#note_534270512
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gnutls-devel