gnutls_psk_allocate_client_credentials2(3)

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

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.

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.