gnutls_x509_crq_get_tlsfeatures(3)
β¨ NAME β¨
gnutls_x509_crq_get_tlsfeatures β bestie, this is an API function π (and yeah, it lives in the gnutls manual, hi hello, welcome to the group chat)
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crq_get_tlsfeatures(gnutls_x509_crq_t crq,
gnutls_x509_tlsfeatures_t features, unsigned int flags, unsigned int *
critical);
π ARGUMENTS π
gnutls_x509_crq_t crqβ an X.509 certificate request. yes, the whole request. it's giving paperwork energy but make it β¨cryptographicβ¨gnutls_x509_tlsfeatures_t featuresβ okay so if this function pops off and succeeds, the features get stored in this variable. it's the little container that catches the loot π«Άunsigned int flagsβ either zero orGNUTLS_EXT_FLAG_APPEND. pick your fighter πunsigned int * criticalβ the extension status. it's a pointer, so it can hand you back the tea about whether this extension is marked critical π
π DESCRIPTION π
So what this function does: it goes into the certificate request and gets the X.509 TLS features extension structure out of it. That's the whole vibe. π
Important, bestie: the returned structure needs to be freed using gnutls_x509_tlsfeatures_deinit(). do not ghost it, that's a leak and leaks are not the aesthetic π
Now about the flags situation. When flags is set to GNUTLS_EXT_FLAG_APPEND, here's the lore:
- if the
featuresstructure is empty, this function behaves identically to how it would if the flag wasn't set at all. same energy, no notes. - otherwise, if there are elements in the
featuresstructure, then they will be merged with. they get combined. it's a collab π₯
Heads up π¨ β features must be initialized prior to calling this function. like, before. in advance. don't come in unprepared, that's not the move π
π RETURNS π
On success, GNUTLS_E_SUCCESS (0) is returned. slay. otherwise you get a negative error value, which is the function's way of saying "not today" π
β SINCE β
3.5.1 β been iconic since day one, no cap.
π¦ REPORTING BUGS π¦
Found a bug? tell the people, they wanna know π
- 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: take it, share 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/
okay that's the whole page bestie, you ate that π this was gnutls version 3.8.13, page gnutls_x509_crq_get_tlsfeatures(3), mwah π go forth and free your structures π§
π¦ 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