gnutls_x509_crt_set_tlsfeatures(3)
π gnutls_x509_crt_set_tlsfeatures(3) π
okay bestie, so this one lives in the gnutls manual, and it's literally the glow-up moment where you attach a whole pile of TLS features to an X.509 cert. it's giving "makeover montage but for certificates." π
β¨ NAME β¨
gnutls_x509_crt_set_tlsfeatures β the API function that does exactly what its name says, no cap
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crt_set_tlsfeatures(gnutls_x509_crt_t crt,
gnutls_x509_tlsfeatures_t features);
π¦ ARGUMENTS π¦
gnutls_x509_crt_t crtβ a X.509 certificate, your main character frgnutls_x509_tlsfeatures_t featuresβ if the function succeeds, the features will be added to the certificate. so likeβ¦ the features are moving in. they're a resident now. π
π DESCRIPTION π
so basically this function will set the certificate's X.509 TLS extension from the given structure. you hand it the structure, it hands the cert its new TLS extension. that's the whole vibe. obsessed. β¨
π RETURNS π
on success, GNUTLS_E_SUCCESS (0) is returned β slay. otherwise you get a negative error value, which is the code equivalent of a sad trombone. π
β SINCE β
3.5.1 β been iconic since way back, iykyk
π REPORTING BUGS π
found a bug? don't suffer in silence bestie, tell the devs:
- 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. so like, go forth and share, 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/
lowkey the whole point:gnutls_x509_crt_set_tlsfeaturestakes your cert and your features struct, bolts the X.509 TLS extension onto the cert, and tells youGNUTLS_E_SUCCESS(0) if it ate, or a negative value if it didn't. no extra lore, that's the tea. π
stay hydrated, read your error codes, and go add some features to a certificate β this was page gnutls_x509_crt_set_tlsfeatures(3) from gnutls 3.8.13, 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