| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_session_supplemental_register} (gnutls_session_t @var{session}, 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}, unsigned @var{flags}) |
| 6 |
@var{session}: the session for which this will be registered |
| 7 |
|
| 8 |
@var{name}: the name of the supplemental data to register |
| 9 |
|
| 10 |
@var{type}: the type of the supplemental data format |
| 11 |
|
| 12 |
@var{recv_func}: the function to receive the data |
| 13 |
|
| 14 |
@var{send_func}: the function to send the data |
| 15 |
|
| 16 |
@var{flags}: must be zero |
| 17 |
|
| 18 |
This function will register a new supplemental data type (rfc4680). |
| 19 |
The registered supplemental functions will be used for that specific |
| 20 |
session. The provided @code{type} must be an unassigned type in |
| 21 |
@code{gnutls_supplemental_data_format_type_t} . |
| 22 |
|
| 23 |
If the type is already registered or handled by GnuTLS internally |
| 24 |
@code{GNUTLS_E_ALREADY_REGISTERED} will be returned. |
| 25 |
|
| 26 |
As supplemental data are not defined under TLS 1.3, this function will |
| 27 |
disable TLS 1.3 support for the given session. |
| 28 |
|
| 29 |
@strong{Returns:} @code{GNUTLS_E_SUCCESS} on success, otherwise a negative error code. |
| 30 |
|
| 31 |
@strong{Since:} 3.5.5 |
| 32 |
@end deftypefun |