gnutls_x509_crt_get_tlsfeatures(3)
β¨ NAME β¨
gnutls_x509_crt_get_tlsfeatures β okay so this is the API function that pulls the X.509 TLS features extension out of a certificate, bestie π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crt_get_tlsfeatures(gnutls_x509_crt_t crt,
gnutls_x509_tlsfeatures_t features, unsigned int flags, unsigned int *
critical);
π ARGUMENTS π
gnutls_x509_crt_t crtβ your X.509 certificate, the main character of this whole situation πgnutls_x509_tlsfeatures_t featuresβ if this function slays (i.e. succeeds), the features get stored in this variable. it's giving output parameter energy β¨unsigned int flagsβ literally either zero orGNUTLS_EXT_FLAG_APPEND. those are your options, no in-between πunsigned int * criticalβ the extension status, dropped in here for you π«Ά
π¦ DESCRIPTION π¦
so this function gets the X.509 TLS features extension structure from the certificate. no cap. π
the returned structure needs to be freed using gnutls_x509_tlsfeatures_deinit() β yes bestie, you have to clean up after yourself, that's the rule π
when the flags is set to GNUTLS_EXT_FLAG_APPEND, then if the features structure is empty, this function will behave identically as if the flag was not set. otherwise, if there are elements in the features structure, then they will be merged with. merged! like a friendship bracelet situation π€
not me reminding you again: features must be initialized prior to calling this function. like, before. prior. do it. π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. so if you see a negative number, that's your vibe check failing, bestie π
π SINCE π
3.5.1 β vintage, but still iconic β¨
π REPORTING BUGS π
found a bug? spill the tea 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, share it, remix it, 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 β this was gnutls 3.8.13, the gnutls_x509_crt_get_tlsfeatures(3) era, and yes it ate π
π
π¦ 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