gnutls_psk_all...nt_credentials2(3)

πŸ“¦
version 3.8.13 Β· 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, fedora 43, fedora 44, ubuntu stonking

✨ NAME ✨

gnutls_psk_allocate_client_credentials2 β€” bestie, it's an API function πŸ’– (from the gnutls manual, obvi)


🌸 SYNOPSIS 🌸

#include <gnutls/gnutls.h>

int
gnutls_psk_allocate_client_credentials2(gnutls_psk_client_credentials_t
* sc, gnutls_mac_algorithm_t mac);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_psk_client_credentials_t * sc β€” okay so this is a pointer to a gnutls_psk_client_credentials_t type. it's the lil baby we're about to birth into existence πŸ’…
  • gnutls_mac_algorithm_t mac β€” the encryption algorithm to use. that's it, that's the whole vibe ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

So what this does: it allocates a gnutls_psk_client_credentials_t structure, and while it's at it, it initializes the HMAC binder algorithm to mac. two birds, one iconic function call, no cap 🫢


πŸ‘‘ RETURNS πŸ‘‘

If everything slays: GNUTLS_E_SUCCESS (0) comes back at you 🌈

If it does NOT slay: you get an error code instead. not the vibe, but at least you know 😭


πŸ’€ REPORTING BUGS πŸ’€

Found a bug? Spill the tea, bestie, and report it to bugs@gnutls.org πŸ“§

Home page, for when you need to lurk: https://www.gnutls.org


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. periodt, that's the license, go off πŸ’…


🌈 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/

like, go read the whole thing, it's giving encyclopedic and honestly iconic 🧚

okay that's the whole page bestie, you're officially credentialed ✨ β€” this was gnutls version 3.8.13, from the gnutls family of manual pages. mwah, bye πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from