GNUTLS_SRP_ALLOCATE_CLIENT_CREDENTIALS(3)

✨ gnutls_srp_allocate_client_credentials ✨

okay bestie, welcome to the gnutls manual, section 3, and today's main character is gnutls_srp_allocate_client_credentials πŸ’… she's an API function, she's here to set you up, and honestly? she ate.


🌸 NAME 🌸

gnutls_srp_allocate_client_credentials β€” it's an API function, no cap. that's the whole name section, short and sweet, we move πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

so here's how you pull up on her. first, you gotta include the header, obviously:

#include <gnutls/gnutls.h>

and then the function itself, looking like this:

int
gnutls_srp_allocate_client_credentials(gnutls_srp_client_credentials_t *
sc);

she returns an int, she takes one pointer, she's lowkey elegant about it. periodt ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_srp_client_credentials_t * sc β€” bestie. listen. this one is a pointer to a gnutls_srp_server_credentials_t type. that's literally what the docs say, i'm not making this up, i'm just the messenger 🫢 so yeah, that's the arg, that's what you hand her.

πŸ’– DESCRIPTION πŸ’–

she allocates a gnutls_srp_client_credentials_t structure. that's it. that's the job. she's the friend who shows up with the thing you needed before you even asked, and she does it in one line. iconic behavior, honestly 🌈


⭐ RETURNS ⭐

  • on success? you get GNUTLS_E_SUCCESS, which is literally just 0. slay.
  • otherwise you get an error code. not slay, but at least you know 😭

πŸ™ˆ REPORTING BUGS πŸ™ˆ

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


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: free to copy, free to share, just keep the receipts πŸ’œ)


πŸ”₯ SEE ALSO πŸ”₯

the full documentation for gnutls lives in a Texinfo manual, bestie. if the /usr/share/doc/gnutls/ directory isn't giving HTML form for you, go here instead:

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

and that's the vibe check, bestie β€” every flag, every pointer, every return code, all of it, untouched πŸŽ€

okay bye ily, this was gnutls version 3.8.13, and this little group-chat sermon was brought to you by the gnutls_srp_allocate_client_credentials(3) page. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from