GNUTLS_X509_EXT_IMPORT_TLSFEATURES(3)
π gnutls_x509_ext_import_tlsfeatures(3) β the gnutls manual, but make it cute π
okay so bestie, we're in the gnutls manual and this page is about pulling TLS Features out of a DER-encoded extension. it's giving β¨certificate archaeologyβ¨ and honestly? iconic. let's get into it π
πΈ NAME πΈ
gnutls_x509_ext_import_tlsfeatures β literally just an API function, no cap π«Ά
β¨ SYNOPSIS β¨
#include <gnutls/x509-ext.h>
int gnutls_x509_ext_import_tlsfeatures(const gnutls_datum_t * ext,
gnutls_x509_tlsfeatures_t f, unsigned int flags);
π¦ ARGUMENTS π¦
const gnutls_datum_t * extβ the DER-encoded extension data. this is the raw material, the main character of the input πgnutls_x509_tlsfeatures_t fβ the features structure. this is where the good stuff lands πunsigned int flagsβ either zero, orGNUTLS_EXT_FLAG_APPEND. pick your fighter β
π DESCRIPTION π
so this function exports the features sitting inside the DER-encoded TLS Features PKIX extension you handed it, and drops them into a gnutls_x509_tlsfeatures_t type. easy. obsessed. π₯
β οΈ bestie, listen: f must be initialized. like, actually. do not skip this step, i'm begging π
now the tea about flags β β when flags is set to GNUTLS_EXT_FLAG_APPEND:
- if the features structure is empty, this function behaves identically to how it would if the flag wasn't set at all. same energy, no difference π
- but if there are elements in the features structure, then they get merged with the new ones. glow-up via combination β¨
π RETURNS π
on success? GNUTLS_E_SUCCESS (0) comes back, slay π otherwise you get a negative error value, which is the universe telling you something went sideways π
π§ SINCE π§
3.5.1 β vintage, but still serving looks π
π REPORTING BUGS π
found a bug? do NOT suffer in silence, bestie. report it:
- 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. (translation: go off, 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, visit:
https://www.gnutls.org/manual/
and that's the whole page, bestie β every flag, every arg, every caveat, all of it. no skips, no shortcuts, periodt π
this has been the gnutls manual, version 3.8.13, page gnutls_x509_ext_import_tlsfeatures(3) β thanks for reading, mwah π«Άβ¨π
π¦ 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