gnutls_priority_string_list(3)

✨ gnutls_priority_string_list ✨

ok so bestie, welcome to another page of the gnutls manual πŸ’– yes we're still in there, no we're not leaving, this is the one about listing priority strings and honestly? it's giving very helpful.


🌸 NAME 🌸

gnutls_priority_string_list β€” an API function πŸŽ€ that lets you peek at all the priority strings, one by one, like scrolling a playlist 🎧


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/gnutls.h>

const char * gnutls_priority_string_list(unsigned iter, unsigned int
flags);

πŸ’… ARGUMENTS πŸ’…

  • unsigned iter β€” an integer counter that starts from zero, bestie. like index 0, 1, 2… you know the drill 🫢
  • unsigned int flags β€” one of GNUTLS_PRIORITY_LIST_INIT_KEYWORDS, GNUTLS_PRIORITY_LIST_SPECIAL ✨ pick your vibe

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the tea β˜• you can use this to iterate over all the available priority strings. literally all of them. one at a time. main character energy, one string per call πŸ‘‘

but wait β€” due to internal implementation details, there are cases where this function can return the empty string. and when it does? ignore it. don't @ it. it's not real. πŸ™ˆ

and when there are genuinely no strings left to give? it returns NULL. that's your cue that the list is done, periodt πŸ’€


πŸ“ RETURNS πŸ“

a priority string πŸ’– (or NULL when there's nothing left, or possibly an empty string that you should just ignore, remember? iykyk)


⭐ SINCE ⭐

3.4.0 β€” she's been iconic since 3.4.0, no cap 🌈


πŸ’œ REPORTING BUGS πŸ’œ

found a bug? spill it:


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. (basically: share it, remix 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 πŸ’… go iterate some priority strings and slay πŸ¦‹

this has been the gnutls manual, version 3.8.13, page gnutls_priority_string_list(3) β€” mwah, sending love, stay encrypted πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from