gnutls_mac_list(3)

πŸ’– gnutls_mac_list(3) πŸ’–

okay bestie, welcome to the gnutls manual ✨ this one's a lil page about one lil function and it's genuinely so simple you're gonna be obsessed.


🌸 NAME 🌸

gnutls_mac_list β€” it's an API function, bestie. that's the whole name. short, sweet, iconic πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

so first you gotta pull in the header, obviously:

#include <gnutls/gnutls.h>

and then the function itself is right here:

const gnutls_mac_algorithm_t * gnutls_mac_list( void);

like. no arguments. none. it just gives 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • void β€” literally nothing. no params, no drama, no notes. she takes zero input and that's the vibe πŸ’…

✨ DESCRIPTION ✨

so what does she actually do?? she hands you back a list of hash algorithms that you can use as MACs πŸ”₯ like, the full roster, right there.

lowkey important tho β€” not necessarily all of those MACs are supported in TLS cipher suites, so don't just assume every single one shows up in every context, okay?? read the room 🫢

⚠️ also hello?? this function is NOT thread safe. so if you're out here threading, be careful, bestie, do NOT share this call across threads and then act surprised 😭

πŸ’œ RETURNS πŸ’œ

she returns a list of gnutls_mac_algorithm_t integers β€” and the list is (0)-terminated, meaning you walk it until you hit that zero and then you stop, periodt.

so like, the available MACs. that's what you get. slay πŸŽ€


πŸ› REPORTING BUGS πŸ›

found a bug?? do NOT 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. (yes that means you can share it, go off πŸ’–)


🌈 SEE ALSO 🌈

the full documentation for gnutls is maintained as a Texinfo manual. so if the /usr/share/doc/gnutls/ directory does not contain the HTML form, go visit:

https://www.gnutls.org/manual/

and that's the whole page, bestie!! no cap, it's giving "tiny function, big energy" ✨ this was the gnutls manual, version 3.8.13, and the page was gnutls_mac_list(3) β€” thanks for reading, mwah πŸ’‹πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from