summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2020-10-24 09:48:07 +0200
committerDaiki Ueno <ueno@gnu.org>2020-10-26 17:42:18 +0100
commit350394353fac9901b7abbc88ba164b7cfc45e98d (patch)
tree2b41e8409c3a0ab15bcdaa897d0c7d112679b041
parentece960ee909f7ed0db3a75cc746a67f7286e10c4 (diff)
downloadgnutls-350394353fac9901b7abbc88ba164b7cfc45e98d.tar.gz
gnutls_psk_set_server_credentials_file: document the file format
Signed-off-by: Daiki Ueno <ueno@gnu.org>
-rw-r--r--lib/psk.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/psk.c b/lib/psk.c
index 6ea3adb63c..e5f2b05311 100644
--- a/lib/psk.c
+++ b/lib/psk.c
@@ -231,6 +231,11 @@ gnutls_psk_allocate_server_credentials(gnutls_psk_server_credentials_t *
* #gnutls_psk_server_credentials_t type. This password file
* holds usernames and keys and will be used for PSK authentication.
*
+ * Each entry in the file consists of a username, followed by a colon
+ * (':') and a hex-encoded key. If the username contains a colon or
+ * any other special character, it can be hex-encoded preceded by a
+ * '#'.
+ *
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise
* an error code is returned.
**/