GNUTLS_X509_EXT_EXPORT_TLSFEATURES(3)
β¨ gnutls_x509_ext_export_tlsfeatures β¨
okay bestie, buckle up π this one lives in the gnutls manual, section 3 β yes, the gnutls library, the TLS icon itself π. It's a lil API function and it's lowkey the moment your TLS features struct gets its glow-up into actual wire format. Let's go π¦
NAME π
gnutls_x509_ext_export_tlsfeatures β bestie, it's an API function. That's the whole vibe.
SYNOPSIS πΈ
#include <gnutls/x509-ext.h>
int gnutls_x509_ext_export_tlsfeatures(gnutls_x509_tlsfeatures_t f,
gnutls_datum_t * ext);
like. look at her. so clean β¨
ARGUMENTS π
gnutls_x509_tlsfeatures_t fβ the features structure. your little bundle of TLS feature joy, the thing you're about to export π«Άgnutls_datum_t * extβ the DER-encoded extension data goes here. and listen: it must be freed usinggnutls_free(). notfree(), not vibes, not hopes and dreams.gnutls_free(). periodt π
DESCRIPTION π¦
so what does she actually do? this function converts the provided TLS features structure β structure β (yes, the original says it twice, and honestly? iconic, she's emphatic) into a DER-encoded TLS features PKIX extension π₯
and the output data in ext? that gets allocated using gnutls_malloc() π so it's gnutls's memory, gnutls's rules, gnutls's cleanup. iykyk.
RETURNS β
- on success, you get
GNUTLS_E_SUCCESS(0) π slay - otherwise? a negative error value π so like. check it. please. for me. π
SINCE π
3.5.1 β she's been here since 3.5.1, an elder, a legend, a main character who predates half your dependencies π
REPORTING BUGS π
found a bug? do not suffer in silence, tell the devs:
- report bugs to
<bugs@gnutls.org> - home page:
https://www.gnutls.org
they wanna hear it fr fr π«Ά
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. (translation: share her, just keep the receipts π)
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, go visit:
https://www.gnutls.org/manual/
reminder bestie: free thatextwithgnutls_free(). i will know. the compiler might not, but i will. π
mwah π that was gnutls version 3.8.13, page gnutls_x509_ext_export_tlsfeatures(3) β go forth, export your features, and stay hydrated πβ¨
π¦ 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