gnutls_x509_tlsfeatures_get(3)
β¨ gnutls_x509_tlsfeatures_get(3) β¨
okay bestie, welcome to the gnutls manual π this one lives in section 3 of the manual (that's the library-functions section, iykyk), and it's all about pulling one single TLS feature out of an X.509 TLS features extension structure. short king of a function, but let's give it the main character treatment it deserves π
πΈ NAME πΈ
gnutls_x509_tlsfeatures_get β literally just an API function, no cap
π¦ SYNOPSIS π¦
#include <gnutls/x509.h>
int gnutls_x509_tlsfeatures_get(gnutls_x509_tlsfeatures_t f, unsigned
idx, unsigned int * feature);
so you pull in <gnutls/x509.h> and then you call it. that's the whole vibe π
π ARGUMENTS π
gnutls_x509_tlsfeatures_t fβ the TLS features. yes, that's the whole description. it's the features structure you're snooping in π«Άunsigned idxβ the index of the feature you wanna get. like, which one, bestie π’unsigned int * featureβ if the function succeeds, the feature gets stored in this variable. it's a pointer, so it writes back to you β¨
π DESCRIPTION π
this function will get a feature from the X.509 TLS features extension structure. that's it. that's the function. it reaches into the structure and hands you the feature at the index you asked for, and drops it into your feature variable like a little gift π
π RETURNS π
on success, GNUTLS_E_SUCCESS (0) is returned π otherwise you get a negative error value. so like, check the return value, bestie, always π
π§ SINCE π§
3.5.1 β an icon, an OG, been here a minute β
π REPORTING BUGS π
found a bug? not the vibe. 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, 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!! this was written up for gnutls version 3.8.13, so if you're running that, you're golden π go forth and get those TLS features, you absolute legend π«Άπ π
π¦ 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