gnutls_srp_server_get_username(3)

✨ gnutls_srp_server_get_username ✨

okay bestie, welcome to the gnutls manual page for gnutls_srp_server_get_username(3) πŸ’– this one's a little cutie, short and sweet, but it's lowkey important if you're doing SRP stuff on the server side 🫢


🌸 SYNOPSIS 🌸

#include <gnutls/gnutls.h>

const char * gnutls_srp_server_get_username(gnutls_session_t session);

like, that's the whole vibe. one function, one arg, one const char * coming back at you πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_session_t session β€” bestie this is just a gnutls session. that's it. that's the arg. the session you're working with, the one that's like... currently doing its thing ✨

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea: this function returns the username of the peer 🌈

BUT. and this is the important part, no cap β€” you should only call this in the case of SRP authentication AND in the case of a server. that's the vibe check. if you're not in that exact situation, this is not your moment, bestie 😭

and if something goes wrong? it returns NULL. classic. returns NULL in case of an error, periodt.


⭐ RETURNS ⭐

the SRP username of the peer πŸ¦‹ β€” or NULL if there's an error. that's the whole deal, fr fr.


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? don't be shy, tell the gnutls girlies about it 🫢


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.

like, go off, remix it, redistribute 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/


ok that's the whole page bestie, you ate that πŸ’… now go get that username (server-side SRP only, iykyk πŸ”₯)

gnutls version 3.8.13 β€” mwah, love u, bye πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from