GNUTLS_PSK_SET_SERVER_CREDENTIALS_FILE(3)
โจ NAME โจ
gnutls_psk_set_server_credentials_file โ it's an API function, bestie ๐
(from the gnutls manual, in case you were wondering)
๐ฆ SYNOPSIS ๐ฆ
#include <gnutls/gnutls.h>
int
gnutls_psk_set_server_credentials_file(gnutls_psk_server_credentials_t
res, const char * password_file);
๐ ARGUMENTS ๐
gnutls_psk_server_credentials_t resโ okay so this one is agnutls_psk_server_credentials_t</p> type. that's the whole vibe of it. ๐const char * password_fileโ this is the PSK password file, and yes the classic name for it ispasswd.psk. she's the one holding the receipts. ๐
๐ธ DESCRIPTION ๐ธ
So this function sets the password file, inside a gnutls_psk_server_credentials_t type. no cap. ๐ซถ
That password file is where the usernames and keys live, and it's literally what gets used for PSK authentication. it's giving "the whole guest list, right here". ๐
Each entry in the file goes like this: a username, followed by a colon (':'), and then a hex-encoded key. iconic format, honestly.
And if the username contains a colon, or literally any other special character, it can be hex-encoded preceded by a
๐ not me getting to the end of that sentence and it just... stops. that's genuinely how the page reads, bestie โ I'm not about to invent an ending for it, that would be a whole lie. so: "preceded by a" and that's the sentence. the mystery continues. ๐
โญ RETURNS โญ
When it works, you get GNUTLS_E_SUCCESS (0) back. slay. โจ
When it doesn't, you get an error code. periodt. ๐
๐ REPORTING BUGS ๐
Found a bug? Report it 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, you can share it โ just keep the receipt. ๐)
๐ 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/
okay that's the whole page, you ate it, go forth and authenticate ๐ง
this was gnutls_psk_set_...redentials_file(3) from the gnutls manual, version 3.8.13 โ mwah, take care bestie ๐โจ
๐ฆ 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