1gnutls_supplemental_register(3)     gnutls     gnutls_supplemental_register(3)
2
3
4

NAME

6       gnutls_supplemental_register - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int  gnutls_supplemental_register(const  char * name, gnutls_supplemen‐
12       tal_data_format_type_t    type,    gnutls_supp_recv_func     recv_func,
13       gnutls_supp_send_func send_func);
14

ARGUMENTS

16       const char * name
17                   the name of the supplemental data to register
18
19       gnutls_supplemental_data_format_type_t type
20                   the type of the supplemental data format
21
22       gnutls_supp_recv_func recv_func
23                   the function to receive the data
24
25       gnutls_supp_send_func send_func
26                   the function to send the data
27

DESCRIPTION

29       This  function  will  register  a new supplemental data type (rfc4680).
30       The registered data will remain until gnutls_global_deinit() is called.
31       The  provided   type  must  be  an unassigned type in gnutls_supplemen‐
32       tal_data_format_type_t. If the type is already registered or handled by
33       GnuTLS internally GNUTLS_E_ALREADY_REGISTERED will be returned.
34
35       This  function is not thread safe. As supplemental data are not defined
36       under TLS 1.3, this function will disable TLS 1.3 support globally.
37

RETURNS

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

SINCE

42       3.4.0
43

REPORTING BUGS

45       Report bugs to <bugs@gnutls.org>.
46       Home page: https://www.gnutls.org
47
48
50       Copyright © 2001- 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.7.6     gnutls_supplemental_register(3)
Impressum