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 Β© 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