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