psk_client_credentials_st
typedef struct {
gnutls_datum_t username;
gnutls_datum_t key;
gnutls_psk_client_credentials_function2 *get_function;
gnutls_psk_client_credentials_function *get_function_legacy;
/* TLS 1.3 - The HMAC algorithm to use to compute the binder values */
const mac_entry_st *binder_algo;
} psk_client_credentials_st;
psk_server_cred_st
typedef struct {
char *password_file;
/* callback function, instead of reading the
* password files.
*/
gnutls_psk_server_credentials_function2 *pwd_callback;
gnutls_psk_server_credentials_function *pwd_callback_legacy;
/* For DHE_PSK */
gnutls_dh_params_t dh_params;
unsigned int deinit_dh_params;
gnutls_sec_param_t dh_sec_param;
/* this callback is used to retrieve the DH or RSA
* parameters.
*/
gnutls_params_function *params_func;
/* Identity hint. */
char *hint;
/* TLS 1.3 - HMAC algorithm for the binder values */
const mac_entry_st *binder_algo;
} psk_server_cred_st;