summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorAnder Juaristi <a@juaristi.eus>2020-03-02 16:37:10 +0100
committerAnder Juaristi <a@juaristi.eus>2020-03-23 17:00:58 +0100
commitd00638997fa269a975095d852633b48b2b64fbf9 (patch)
tree2e59386d821c9e4ab07122f6189d1b8f04658452 /devel
parent5aff47e3dad565172f0268e0b685282f816bd1b9 (diff)
downloadgnutls-d00638997fa269a975095d852633b48b2b64fbf9.tar.gz
psk: Allow non-NULL PSK usernames
This commit closes #586. Two new functions are introduced: gnutls_psk_server_get_username2() and gnutls_psk_set_client_username2(), which are identical in behavior to those named similarly (without the final '2'), but allow arbitrary gnutls datums (not strings) to be used as usernames. Two new callback functions are also introduced, with their respective setters: gnutls_psk_set_server_credentials_function2() and gnutls_psk_set_client_credentials_function2(). In addition, the password file format is extended so that non-string usernames can be specified. A leading '#' character tells GnuTLS that the username should be interpreted as a raw byte string (encoded in HEX). Example: #deadbeef:9e32cf7786321a828ef7668f09fb35db Signed-off-by: Ander Juaristi's avatarAnder Juaristi <a@juaristi.eus>
Diffstat (limited to 'devel')
-rw-r--r--devel/symbols.last4
1 files changed, 4 insertions, 0 deletions
diff --git a/devel/symbols.last b/devel/symbols.last
index 70ef6b3f18..a3a11ab7c2 100644
--- a/devel/symbols.last
+++ b/devel/symbols.last
@@ -651,11 +651,15 @@ gnutls_psk_allocate_server_credentials@GNUTLS_3_4
gnutls_psk_client_get_hint@GNUTLS_3_4
gnutls_psk_free_client_credentials@GNUTLS_3_4
gnutls_psk_free_server_credentials@GNUTLS_3_4
+gnutls_psk_server_get_username2@GNUTLS_3_6_13
gnutls_psk_server_get_username@GNUTLS_3_4
+gnutls_psk_set_client_credentials2@GNUTLS_3_6_13
gnutls_psk_set_client_credentials@GNUTLS_3_4
+gnutls_psk_set_client_credentials_function2@GNUTLS_3_6_13
gnutls_psk_set_client_credentials_function@GNUTLS_3_4
gnutls_psk_set_params_function@GNUTLS_3_4
gnutls_psk_set_server_credentials_file@GNUTLS_3_4
+gnutls_psk_set_server_credentials_function2@GNUTLS_3_6_13
gnutls_psk_set_server_credentials_function@GNUTLS_3_4
gnutls_psk_set_server_credentials_hint@GNUTLS_3_4
gnutls_psk_set_server_dh_params@GNUTLS_3_4