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 π«Ά
- Report bugs 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.
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
- 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