gnutls_x509_ext_ct_export_scts(3)

πŸ’– NAME πŸ’–

gnutls_x509_ext_ct_export_scts β€” bestie, it's an API function ✨


🌸 SYNOPSIS 🌸

#include <gnutls/x509-ext.h>

int gnutls_x509_ext_ct_export_scts(const gnutls_x509_ct_scts_t scts,
                                   gnutls_datum_t * ext);

πŸŽ€ ARGUMENTS πŸŽ€

  • const gnutls_x509_ct_scts_t scts β€” a SCT list that's already been initialized, okay? like she's ready, she's set, don't hand me an uninitialized one πŸ™ˆ
  • gnutls_datum_t * ext β€” the DER-encoded extension data lands here. lowkey important: you must free this with gnutls_free() when you're done. it's giving "you break it, you buy it" but for memory 🫢

✨ DESCRIPTION ✨

okay so this function takes the SCT list you handed it and converts it into a DER-encoded SignedCertificateTimestampList extension. the OID for that is 1.3.6.1.4.1.11129.2.4.2 β€” memorize it, or don't, iykyk πŸ’…

the output data that shows up in ext gets allocated using gnutls_malloc(). so yeah, that's why you're on the hook for freeing it. she's your buffer now, bestie πŸ‘‘


🌈 RETURNS 🌈

GNUTLS_E_SUCCESS (which is 0) on success πŸŽ‰ β€” or a negative error value if things went sideways 😭


πŸ¦‹ REPORTING BUGS πŸ¦‹

found a bug? not you being the main character of QA πŸ’€ report it 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. so like, take her, she's free, just keep the receipts πŸ’–


⭐ SEE ALSO ⭐

the full documentation for gnutls lives as a Texinfo manual. if the /usr/share/doc/gnutls/ directory doesn't have the HTML form for you, then bestie you gotta go visit:

https://www.gnutls.org/manual/


that's the whole page fr fr 🌸 this was gnutls 3.8.13, gnutls_x509_ext_ct_export_scts(3) β€” go forth and export those SCTs, you absolute icon πŸŽ€βœ¨

πŸ“¦ where this page comes from