diff options
author | Daiki Ueno <ueno@gnu.org> | 2023-05-05 21:00:12 +0000 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2023-05-05 21:00:12 +0000 |
commit | 0263dec937e02ab71fd9cb158fa69acf7c374481 (patch) | |
tree | 1e84b4e61a611894f264ceb5e9e2ef9a51dacfd0 /lib/auth/psk.h | |
parent | 643342325a15e652fedac27b7bcb4614a242ab0d (diff) | |
parent | 4fe788cc172e6c06f40a42ba516a60f21369018c (diff) | |
download | gnutls-master.tar.gz |
psk: Add basic support for RFC 9258 external PSK importer interface
Closes #1355
See merge request gnutls/gnutls!1741
Diffstat (limited to 'lib/auth/psk.h')
-rw-r--r-- | lib/auth/psk.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/auth/psk.h b/lib/auth/psk.h index 06d7913c85..9e1f94b1fe 100644 --- a/lib/auth/psk.h +++ b/lib/auth/psk.h @@ -36,19 +36,20 @@ typedef struct gnutls_psk_client_credentials_st { gnutls_datum_t username; gnutls_datum_t key; - gnutls_psk_client_credentials_function2 *get_function; - gnutls_psk_client_credentials_function *get_function_legacy; + gnutls_psk_client_credentials_function3 *get_function; + gnutls_psk_client_credentials_function2 *get_function2; + gnutls_psk_client_credentials_function *get_function1; /* TLS 1.3 - The HMAC algorithm to use to compute the binder values */ const mac_entry_st *binder_algo; } psk_client_credentials_st; typedef struct gnutls_psk_server_credentials_st { char *password_file; - /* callback function, instead of reading the - * password files. + /* callback functions, instead of reading the password files. */ - gnutls_psk_server_credentials_function2 *pwd_callback; - gnutls_psk_server_credentials_function *pwd_callback_legacy; + gnutls_psk_server_credentials_function3 *pwd_callback; + gnutls_psk_server_credentials_function2 *pwd_callback2; + gnutls_psk_server_credentials_function *pwd_callback1; /* For DHE_PSK */ gnutls_dh_params_t dh_params; |