summaryrefslogtreecommitdiff
path: root/lib/psk.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-12-11 09:34:22 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-12-12 08:35:15 +0100
commit626fb21cfbe449add5aa5b66831f53256bcc13df (patch)
treede1ee710f1e6eaef43160c955d86127e8fdd2cb3 /lib/psk.c
parentdbd6a98e657020b92cd16fcdd15388aa41eb61b3 (diff)
downloadgnutls-626fb21cfbe449add5aa5b66831f53256bcc13df.tar.gz
srp/psk: update recommendations for usernames [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/psk.c')
-rw-r--r--lib/psk.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/psk.c b/lib/psk.c
index 0fd8cf2a11..2818a8450b 100644
--- a/lib/psk.c
+++ b/lib/psk.c
@@ -83,9 +83,9 @@ gnutls_psk_allocate_client_credentials(gnutls_psk_client_credentials_t *
* This function sets the username and password, in a
* gnutls_psk_client_credentials_t type. Those will be used in
* PSK authentication. @username should be an ASCII string or UTF-8
- * strings prepared using the "SASLprep" profile of "stringprep". The
- * key can be either in raw byte format or in Hex format (without the
- * 0x prefix).
+ * string. In case of a UTF-8 string it is recommended to be following
+ * the PRECIS framework for usernames (rfc8265). The key can be either
+ * in raw byte format or in Hex format (without the 0x prefix).
*
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise
* an error code is returned.
@@ -296,8 +296,9 @@ gnutls_psk_set_server_credentials_function(gnutls_psk_server_credentials_t
* gnutls_datum_t* key);
*
* The @username and @key->data must be allocated using gnutls_malloc().
- * @username should be ASCII strings or UTF-8 strings prepared using
- * the "SASLprep" profile of "stringprep".
+ * The @username should be an ASCII string or UTF-8
+ * string. In case of a UTF-8 string it is recommended to be following
+ * the PRECIS framework for usernames (rfc8265).
*
* The callback function will be called once per handshake.
*