GNUTLS_SRP_SET_SERVER_CREDENTIALS_FILE(3)
π gnutls_srp_set_server_credentials_file β the manual page, bestie edition π
okay so we're deep in the gnutls manual (yes, that gnutls, the TLS library, the whole 3.8.13 era of it) and today's main character is a lil API function called gnutls_srp_set_server_credentials_file. it's giving β¨server-side SRP setupβ¨ and honestly? obsessed. let's get into it π«Ά
πΈ NAME πΈ
gnutls_srp_set_server_credentials_file β API function. that's it, that's the name, no cap π
β¨ SYNOPSIS β¨
like, here's the vibe, character for character:
#include <gnutls/gnutls.h>
int
gnutls_srp_set_server_credentials_file(gnutls_srp_server_credentials_t
res, const char * password_file, const char * password_conf_file);
yes bestie, that's a return type of int and yes, it's long enough to wrap. iconic behaviour honestly π
π ARGUMENTS π
gnutls_srp_server_credentials_t resβ is agnutls_srp_server_credentials_ttype. that's the credentials thing you're loading files into, she's the star of the show πconst char * password_fileβ is the SRP password file (tpasswd). that's where the usernames and verifiers live πconst char * password_conf_fileβ is the SRP password conf file (tpasswd.conf). yes, there are two files. she's high maintenance but she's worth it π
π¦ DESCRIPTION π¦
so the way this works: this function sets the password files, inside a gnutls_srp_server_credentials_t type. simple as.
and those password files? they hold usernames and verifiers, and they will be used for SRP authentication. that's the whole point. no extra lore, no hidden side quests, that's the function fr fr β¨
π RETURNS π
on success, GNUTLS_E_SUCCESS (0) is returned. π anything else? that's an error code, bestie. go read it, don't ignore it π
π REPORTING BUGS π
found a bug? not me manifesting that but okay, report 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. (yes that's the whole legal vibe, keep the notice, it's free, slay) π«Ά
π SEE ALSO π
the full documentation for gnutls is maintained as a Texinfo manual. so if the /usr/share/doc/gnutls/ directory does not contain the HTML form, bestie, just go visit:
https://www.gnutls.org/manual/ β¨
and that's the page!! written by the gnutls girlies, version 3.8.13, dated right there in the footer energy β mwah, love u, go set those credentials πππ¦πΈπ
π¦ 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