]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutls_psk_set_server_credentials_file: document the file format
authorDaiki Ueno <ueno@gnu.org>
Sat, 24 Oct 2020 07:48:07 +0000 (09:48 +0200)
committerDaiki Ueno <ueno@gnu.org>
Mon, 26 Oct 2020 16:42:18 +0000 (17:42 +0100)
Signed-off-by: Daiki Ueno <ueno@gnu.org>
lib/psk.c

index 6ea3adb63c44f656582a2ef9a836f4d47891b41f..e5f2b05311ad3ed946ec37db112c3ee1a39c89d6 100644 (file)
--- 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.
  **/