gnutls_psk_allocate_server_credentials2(3)

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_psk_server_credentials_t type.

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.

Reporting bugs

Report bugs to <[email protected]>.
Home page: https://www.gnutls.org

From gnutls 3.8.13-3 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.