gnutls_x509_ext_ct_import_scts(3)
π gnutls_x509_ext_ct_import_scts(3) π
okay bestie, so this one lives in the gnutls manual, section 3, and it's literally the glow-up your Certificate Transparency game needed. it's called gnutls_x509_ext_ct_import_scts, and yes the name is a whole mouthful, but we're gonna make it make sense. π«Ά
β¨ NAME β¨
gnutls_x509_ext_ct_import_scts β API function π
π¦ SYNOPSIS π¦
#include <gnutls/x509-ext.h>
int gnutls_x509_ext_ct_import_scts(const gnutls_datum_t * ext,
gnutls_x509_ct_scts_t scts, unsigned int flags);
πΈ ARGUMENTS πΈ
const gnutls_datum_t * extβ a DER-encoded extension, no cap. that's the raw bytes you're handing over. πgnutls_x509_ct_scts_t sctsβ the SCT list itself, aka where the goodies land. πunsigned int flagsβ should be zero. that's it. zero. nothing else, don't get creative. π
π« DESCRIPTION π«
okay so here's the tea: this function reads a SignedCertificateTimestampList structure straight out of the DER data of the X.509 Certificate Transparency SCT extension, and that extension's OID is 1.3.6.1.4.1.11129.2.4.2. write it down, iykyk. π₯
the list of SCTs (that's Signed Certificate Timestamps if we're being formal) gets placed onto scts, and here's the important bit β scts has to be initialized before you call this. like, previously. with gnutls_x509_ext_ct_scts_init(). don't skip that step, it's giving main character energy but in a bad way. π
β RETURNS β
GNUTLS_E_SUCCESS (that's 0 bestie) on success, or a negative error value if things went sideways. π
π REPORTING BUGS π
found a bug? go tell the gnutls people, they wanna know, fr fr:
Report bugs to <bugs@gnutls.org>.
Home page: https://www.gnutls.org
π COPYRIGHT π
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. slay, honestly. π«Ά
π SEE ALSO π
The full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit
https://www.gnutls.org/manual/
and that's the whole page, bestie!! β¨ this lil icon was brought to you by gnutls 3.8.13 and the manual page gnutls_x509_ext_ct_import_scts(3). go forth and import those timestamps. ππ¦π
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms