gnutls_psk_allocate_client_credentials23
Api function
Usage
#include <gnutls/gnutls.h>
int gnutls_psk_allocate_client_credentials2(gnutls_psk_client_credentials_t * sc, gnutls_mac_algorithm_t mac);
Arguments
gnutls_psk_client_credentials_t * sc
|
is a pointer to a |
|---|---|
gnutls_mac_algorithm_t mac
|
encryption algorithm to use |
Overview
Allocate a gnutls_psk_client_credentials_t structure and initializes the HMAC binder algorithm to mac .
Returns
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise an error code is returned.