



@deftypefun {int} {gnutls_psk_allocate_server_credentials2} (gnutls_psk_server_credentials_t * @var{sc}, gnutls_mac_algorithm_t @var{mac})
@var{sc}: is a pointer to a @code{gnutls_psk_server_credentials_t}  type.

@var{mac}: encryption algorithm to use

Allocate a gnutls_psk_server_credentials_t structure and initializes
the HMAC binder algorithm to  @code{mac} . If  @code{mac} is set to GNUTLS_MAC_UNKNOWN
both possible algorithms SHA384 and SHA256 are applied to find a matching
binder value.

@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise
an error code is returned.
@end deftypefun
