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 Β© 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