1gnutls_psk_format_imported_identity(3g)nutlgsnutls_psk_format_imported_identity(3)
2
3
4

NAME

6       gnutls_psk_format_imported_identity - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int  gnutls_psk_format_imported_identity(const  gnutls_datum_t  * iden‐
12       tity,  const  gnutls_datum_t  *  context,  gnutls_protocol_t   version,
13       gnutls_digest_algorithm_t hash, gnutls_datum_t * imported_identity);
14

ARGUMENTS

16       const gnutls_datum_t * identity
17                   external identity
18
19       const gnutls_datum_t * context
20                   optional contextual information
21
22       gnutls_protocol_t version
23                   protocol version to which the PSK is imported
24
25       gnutls_digest_algorithm_t hash
26                   hash algorithm used for KDF
27
28       gnutls_datum_t * imported_identity
29                   where the imported identity is stored
30

DESCRIPTION

32       This  formats an external PSK identity  identity into an imported form,
33       described in RFC 9258 as ImportedIdentity.
34
35       Upon success, the data field of  imported_identity is  allocated  using
36       gnutls_malloc() and the caller must free the memory after use.
37

RETURNS

39       GNUTLS_E_SUCCESS (0) on success, otherwise a negative error code.
40

SINCE

42       3.8.1
43

REPORTING BUGS

45       Report bugs to <bugs@gnutls.org>.
46       Home page: https://www.gnutls.org
47
48
50       Copyright © 2001-2023 Free Software Foundation, Inc., and others.
51       Copying  and  distribution  of this file, with or without modification,
52       are permitted in any medium without royalty provided the copyright  no‐
53       tice and this notice are preserved.
54

SEE ALSO

56       The  full  documentation  for gnutls is maintained as a Texinfo manual.
57       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
58       visit
59
60       https://www.gnutls.org/manual/
61
62gnutls                               3.8.g2nutls_psk_format_imported_identity(3)
Impressum