Debian Codegraph @

doc/functions/gnutls_supplemental_register

raw
1
2
3
4
5 @deftypefun {int} {gnutls_supplemental_register} (const char * @var{name}, gnutls_supplemental_data_format_type_t @var{type}, gnutls_supp_recv_func @var{recv_func}, gnutls_supp_send_func @var{send_func})
6 @var{name}: the name of the supplemental data to register
7
8 @var{type}: the type of the supplemental data format
9
10 @var{recv_func}: the function to receive the data
11
12 @var{send_func}: the function to send the data
13
14 This function will register a new supplemental data type (rfc4680).
15 The registered data will remain until @code{gnutls_global_deinit()}
16 is called. The provided @code{type} must be an unassigned type in
17 @code{gnutls_supplemental_data_format_type_t} . If the type is already
18 registered or handled by GnuTLS internally @code{GNUTLS_E_ALREADY_REGISTERED}
19 will be returned.
20
21 This function is not thread safe. As supplemental data are not defined under
22 TLS 1.3, this function will disable TLS 1.3 support globally.
23
24 @strong{Returns:} @code{GNUTLS_E_SUCCESS} on success, otherwise a negative error code.
25
26 @strong{Since:} 3.4.0
27 @end deftypefun