gnutls_priority_protocol_list(3)

πŸ’– gnutls_priority_protocol_list(3) β€” the gnutls manual, bestie edition πŸ’–

okay so real talk, this one lives in the gnutls manual (yes, that gnutls, the TLS library that's literally everywhere), and it's the little function that spills the tea on which TLS versions your priority setup actually has in it. shall we? 🫢


✨ NAME ✨

gnutls_priority_protocol_list β€” and yes, that's an API function, no cap πŸ‘‘


🌸 SYNOPSIS 🌸

#include <gnutls/gnutls.h>

int gnutls_priority_protocol_list(gnutls_priority_t pcache, const
unsigned int ** list);

bestie look at that signature, it's giving tiny but powerful πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_priority_t pcache β€” this one is a gnutls_priority_t type. that's the vibe. that's what it is. πŸ¦‹
  • const unsigned int ** list β€” this is a pointer-to-pointer situation (iykyk) and it will point to an integer list. that's literally its whole job, it's so real of it ✨

πŸ”₯ DESCRIPTION πŸ”₯

so what does it do?? it gets you a list of the available TLS version numbers that are chillin' inside the priority structure. that's it. that's the function. no drama, just protocols πŸ’œ


🌈 RETURNS 🌈

it hands you back the number of protocols β€” or, if things go sideways, an error code. either way you're getting a number, just maybe not the fun kind 😭


⭐ SINCE ⭐

3.0 β€” she's been here since 3.0, an icon, a legend, we stan a stable queen πŸ‘‘


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? don't be shy, tell the gnutls people directly:


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.

that's the legal bit and it's lowkey important, don't skip it bestie πŸ’œ

πŸ¦‹ 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 fr fr 🫢 this came out of gnutls 3.8.13, so if you're reading a different version bestie... vibe check your docs πŸ’… mwah, go slay your TLS config ✨🌸

πŸ“¦ where this page comes from