1gnutls_session_supplemental_register(g3n)utglnsutls_session_supplemental_register(3)
2
3
4

NAME

6       gnutls_session_supplemental_register - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int    gnutls_session_supplemental_register(gnutls_session_t   session,
12       const  char  *   name,   gnutls_supplemental_data_format_type_t   type,
13       gnutls_supp_recv_func   recv_func,   gnutls_supp_send_func   send_func,
14       unsigned flags);
15

ARGUMENTS

17       gnutls_session_t session
18                   the session for which this will be registered
19
20       const char * name
21                   the name of the supplemental data to register
22
23       gnutls_supplemental_data_format_type_t type
24                   the type of the supplemental data format
25
26       gnutls_supp_recv_func recv_func
27                   the function to receive the data
28
29       gnutls_supp_send_func send_func
30                   the function to send the data
31
32       unsigned flags
33                   must be zero
34

DESCRIPTION

36       This function will register a new  supplemental  data  type  (rfc4680).
37       The  registered  supplemental  functions will be used for that specific
38       session. The provided  type must be an unassigned type  in  gnutls_sup‐
39       plemental_data_format_type_t.
40
41       If  the  type  is  already  registered  or handled by GnuTLS internally
42       GNUTLS_E_ALREADY_REGISTERED will be returned.
43
44       As supplemental data are not defined under TLS 1.3, this function  will
45       disable TLS 1.3 support for the given session.
46

RETURNS

48       GNUTLS_E_SUCCESS on success, otherwise a negative error code.
49

SINCE

51       3.5.5
52

REPORTING BUGS

54       Report bugs to <bugs@gnutls.org>.
55       Home page: http://www.gnutls.org
56
57
59       Copyright © 2001-2018 Free Software Foundation, Inc., and others.
60       Copying  and  distribution  of this file, with or without modification,
61       are permitted in any medium  without  royalty  provided  the  copyright
62       notice and this notice are preserved.
63

SEE ALSO

65       The  full  documentation  for gnutls is maintained as a Texinfo manual.
66       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
67       visit
68
69       http://www.gnutls.org/manual/
70
71gnutls                               3.6g.n5utls_session_supplemental_register(3)
Impressum