gnutls_psk_all...er_credentials2(3)
β¨ NAME β¨
gnutls_psk_allocate_server_credentials2 β it's an API function, bestie π
(and yes, this page lives in the gnutls manual, section 3, so if you see gnutls_psk_all...er_credentials2(3) floating around, that's just her government name, it got truncated, she's fine)
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
int
gnutls_psk_allocate_server_credentials2(gnutls_psk_server_credentials_t
* sc, gnutls_mac_algorithm_t mac);
π ARGUMENTS π
gnutls_psk_server_credentials_t * scβ okay so this is a pointer to agnutls_psk_server_credentials_ttype. It's the lil container she's gonna fill up for you π«Άgnutls_mac_algorithm_t macβ the encryption algorithm to use, no cap
π DESCRIPTION π
So what she does is: she allocates a gnutls_psk_server_credentials_t structure, and she initializes the HMAC binder algorithm to mac. That's the whole vibe. Iconic, honestly.
And here's the lil plot twist β if mac is set to GNUTLS_MAC_UNKNOWN, then both of the possible algorithms, SHA384 and SHA256, get applied to find a matching binder value. Not one, not the other, both. She's doing the most and we love that for her β¨
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned π otherwise an error code is returned. So like, check it, okay? Don't just vibe past the return value, bestie π
π¦ REPORTING BUGS π¦
Found a bug? Report it to <bugs@gnutls.org> π
Home page: https://www.gnutls.org
π COPYRIGHT π
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.
(Translation: yes you can 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 whole page, periodt π
β¨ β this was the gnutls manual, version 3.8.13, page gnutls_psk_all...er_credentials2(3). go forth and allocate those credentials, main character π«ΆπΈ
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms