gnutls_pk_list(3)

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

okay so real talk, this page lives in the gnutls manual and it's literally called gnutls_pk_list. that's the whole name. we move.


✨ SYNOPSIS ✨

#include <gnutls/gnutls.h>

const gnutls_pk_algorithm_t * gnutls_pk_list( void);

like, that's it. that's the whole vibe. no arguments, just vibes and a return value 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • void β€” yeah bestie, there are no arguments. nothing. zero. the void. it takes nothing and it gives you a whole list, iconic behaviour honestly πŸ‘‘

🌸 DESCRIPTION 🌸

okay so what does this do? it gets you a list of supported public key algorithms. that's it, that's the job. you call it, it hands you the roster of everything gnutls can do public-key-wise. πŸ’…

⚠️ but bestie. listen. This function is not thread safe. not me calling this from multiple threads 😭 don't do it. keep it to one thread or lock around it, fr fr.

⭐ RETURNS ⭐

you get back a (0)-terminated list of gnutls_pk_algorithm_t integers, and those integers are the ones indicating the available ciphers. so like, walk the array until you hit that zero and you're done. πŸ¦‹


🧚 SINCE 🧚

2.6.0 β€” she's been here since 2.6.0, a legend, a veteran, we stan a consistent API πŸ‘‘


πŸ’€ REPORTING BUGS πŸ’€

found a bug? don't suffer in silence, tell the people:


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, use it, share 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/

and that's the page, bestie!! gnutls version 3.8.13, page gnutls_pk_list(3), brought to you with love and zero thread safety πŸ’–βœ¨ mwah, go forth and list your public key algorithms πŸ¦‹

πŸ“¦ where this page comes from