gnutls_psk_allocate_server_credentials23
Api function
Usage
#include <gnutls/gnutls.h>
int gnutls_psk_allocate_server_credentials2(gnutls_psk_server_credentials_t * sc, gnutls_mac_algorithm_t mac);
Arguments
gnutls_psk_server_credentials_t * sc
|
is a pointer to a |
|---|---|
gnutls_mac_algorithm_t mac
|
encryption algorithm to use |
Overview
Allocate a gnutls_psk_server_credentials_t structure and initializes the HMAC binder algorithm to mac . If mac is set to GNUTLS_MAC_UNKNOWN both possible algorithms SHA384 and SHA256 are applied to find a matching binder value.
Returns
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise an error code is returned.