gnutls_srp_verifier(3)
π gnutls_srp_verifier(3) π
okay bestie, sit down, hydrate, and let me tell you about a lil function from the gnutls manual (section 3, if we're being precise, which we are π ).
β¨ NAME β¨
gnutls_srp_verifier β it's an API function, bestie. that's the whole vibe.
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
int gnutls_srp_verifier(const char * username, const char * password,
const gnutls_datum_t * salt, const gnutls_datum_t * generator, const
gnutls_datum_t * prime, gnutls_datum_t * res);
like. six arguments. she's high maintenance and honestly? iconic for it. π
π ARGUMENTS π
const char * usernameβ the user's name, obviously. who even is she.const char * passwordβ the user's password. shhh. π€«const gnutls_datum_t * saltβ this should be some randomly generated bytes. RANDOM. not your birthday, not"password123", random. got it? π§const gnutls_datum_t * generatorβ the generator of the group. math queen behavior.const gnutls_datum_t * primeβ the group's prime. yes, the big number. the big one. πgnutls_datum_t * resβ where the verifier will be stored. she lives here now.
π¦ DESCRIPTION π¦
so this function will create an SRP verifier, exactly as specified in RFC2945. no cap.
the prime and generator should be one of the static parameters defined in gnutls/gnutls.h β or, if you're feeling bold, they may be generated. your call, main character.
and listen: the verifier will be allocated with@gnutls_malloc()and will be stored inresusing binary format. so don't go reading it like it's a cute lil string, because it is not. it's bytes. respect the bytes. π
β RETURNS β
on success, GNUTLS_E_SUCCESS (that's 0, babe) is returned β or an error code. which is giving "we'll see how it goes." π
π REPORTING BUGS π
found a bug? not me gatekeeping the email:
- Report bugs to <bugs@gnutls.org>.
- Home page: https://www.gnutls.org
they wanna hear from you fr fr.
π 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. slay, that's a very chill license actually. π«Ά
π 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, bestie, just visit:
https://www.gnutls.org/manual/
okay that's the whole page!! mwah, go make some verifiers, drink water, and remember: random salt only. πβ¨ππ¦
this was gnutls 3.8.13, page gnutls_srp_verifier(3) β thanks for reading, ily, 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