GNUTLS_PSK_SET_SERVER_CREDENTIALS_HINT(3)

πŸ’– NAME πŸ’–

gnutls_psk_set_server_credentials_hint β€” bestie, it's an API function ✨


🌸 SYNOPSIS 🌸

#include <gnutls/gnutls.h>

int
gnutls_psk_set_server_credentials_hint(gnutls_psk_server_credentials_t
res, const char * hint);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_psk_server_credentials_t res β€” okay so this one is a gnutls_psk_server_credentials_t type, that's the vibe πŸ’…
  • const char * hint β€” and this is the PSK identity hint string πŸ¦‹

✨ DESCRIPTION ✨

So basically this function sets the identity hint, inside a gnutls_psk_server_credentials_t type. Periodt. πŸ’œ

And like, the whole point of this hint? It gets sent to the client to help it chose a good PSK credential (aka the username and password, iykyk). It's giving little helpful nudge energy, not me being dramatic, it's literally what it does 🌈


πŸ‘‘ RETURNS πŸ‘‘

When everything slays: on success, GNUTLS_E_SUCCESS (0) is returned 🫢 Otherwise? An error code gets returned. Not the main character moment we wanted but okay 😭


⭐ SINCE ⭐

2.4.0 β€” vintage, honestly. Iconic since way back πŸ’«


πŸ™ˆ REPORTING BUGS πŸ™ˆ

Found a bug? Don't be shy, report it to <bugs@gnutls.org>. πŸ›

Home page: 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. (Yes bestie, you can share it, 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/


okay that's the whole page, no cap πŸ’– this was the gnutls_psk_set_server_credentials_hint(3) page from the gnutls manual, version 3.8.13 β€” stay hydrated, read your man pages, and slay πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from