diff options
author | Daiki Ueno <ueno@gnu.org> | 2020-10-24 09:48:07 +0200 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2020-10-26 17:42:18 +0100 |
commit | 350394353fac9901b7abbc88ba164b7cfc45e98d (patch) | |
tree | 2b41e8409c3a0ab15bcdaa897d0c7d112679b041 | |
parent | ece960ee909f7ed0db3a75cc746a67f7286e10c4 (diff) | |
download | gnutls-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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. **/ |