Debian Codegraph @

doc/functions/gnutls_psk_format_imported_identity

raw
1
2
3
4
5 @deftypefun {int} {gnutls_psk_format_imported_identity} (const gnutls_datum_t * @var{identity}, const gnutls_datum_t * @var{context}, gnutls_protocol_t @var{version}, gnutls_digest_algorithm_t @var{hash}, gnutls_datum_t * @var{imported_identity})
6 @var{identity}: external identity
7
8 @var{context}: optional contextual information
9
10 @var{version}: protocol version to which the PSK is imported
11
12 @var{hash}: hash algorithm used for KDF
13
14 @var{imported_identity}: where the imported identity is stored
15
16 This formats an external PSK identity @code{identity} into an imported
17 form, described in RFC 9258 as ImportedIdentity.
18
19 Upon success, the data field of @code{imported_identity} is allocated
20 using @code{gnutls_malloc()} and the caller must free the memory after
21 use.
22
23 @strong{Returns:} @code{GNUTLS_E_SUCCESS} (0) on success, otherwise a negative error code.
24
25 @strong{Since:} 3.8.1
26 @end deftypefun