@deftypefun {int} {gnutls_psk_allocate_client_credentials2} (gnutls_psk_client_credentials_t * @var{sc}, gnutls_mac_algorithm_t @var{mac}) @var{sc}: is a pointer to a @code{gnutls_psk_client_credentials_t} type. @var{mac}: encryption algorithm to use Allocate a gnutls_psk_client_credentials_t structure and initializes the HMAC binder algorithm to @code{mac} . @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise an error code is returned. @end deftypefun