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 withgnutls_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 π
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
- 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