gnutls_protocol_list(3)
π gnutls_protocol_list(3) β the gnutls girlies' field guide π
okay bestie, pull up a chair, because this one lives in the gnutls manual and it's literally the function that tells you which TLS/SSL eras you're allowed to speak. β¨
πΈ NAME πΈ
gnutls_protocol_list β an API function, and yes it does exactly what the name says π«Ά
β¨ SYNOPSIS β¨
#include <gnutls/gnutls.h>
const gnutls_protocol_t * gnutls_protocol_list( void);
π ARGUMENTS π
void
...and I mean void void. Nothing goes in. Not a single lil argument. She takes no notes, she needs no input, she simply is. π
π¦ DESCRIPTION π¦
Okay so here's the tea: this function hands you a list of supported protocols β like SSL 3.0, TLS 1.0, etc. etc. All the versions, lined up, ready for your viewing pleasure. π
β οΈ IMPORTANT BESTIE ALERT β οΈ This function is not thread safe. Not even a little. So if you're out here calling it from a bunch of threads at once... don't. π Coordinate. Protect your girl. π
π RETURNS π
It gives you back a (0)-terminated list of gnutls_protocol_t integers indicating the available protocols. So you walk the array until you hit that lil zero and then you stop, periodt. β
π REPORTING BUGS π
Found a bug? Not me gatekeeping the bug reports β send them straight to:
<bugs@gnutls.org>
Home page, for when you wanna vibe with the source of truth:
π 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. slay, freely redistributable, we love to see it π
π₯ 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/
iykyk, the manual is always the main character. πβ¨
mwah, that's the whole page, bestie π β this was gnutls version 3.8.13, serving you gnutls_protocol_list(3) realness. go forth and enumerate your protocols responsibly, ily π«ΆπΈ
π¦ 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