Blame doc/manpages/gnutls_session_ext_register.3

Packit Service 4684c1
.\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
Packit Service 4684c1
.TH "gnutls_session_ext_register" 3 "3.6.14" "gnutls" "gnutls"
Packit Service 4684c1
.SH NAME
Packit Service 4684c1
gnutls_session_ext_register \- API function
Packit Service 4684c1
.SH SYNOPSIS
Packit Service 4684c1
.B #include <gnutls/gnutls.h>
Packit Service 4684c1
.sp
Packit Service 4684c1
.BI "int gnutls_session_ext_register(gnutls_session_t " session ", const char * " name ", int " id ", gnutls_ext_parse_type_t " parse_point ", gnutls_ext_recv_func " recv_func ", gnutls_ext_send_func " send_func ", gnutls_ext_deinit_data_func " deinit_func ", gnutls_ext_pack_func " pack_func ", gnutls_ext_unpack_func " unpack_func ", unsigned " flags ");"
Packit Service 4684c1
.SH ARGUMENTS
Packit Service 4684c1
.IP "gnutls_session_t session" 12
Packit Service 4684c1
the session for which this extension will be set
Packit Service 4684c1
.IP "const char * name" 12
Packit Service 4684c1
the name of the extension to register
Packit Service 4684c1
.IP "int id" 12
Packit Service 4684c1
the numeric id of the extension
Packit Service 4684c1
.IP "gnutls_ext_parse_type_t parse_point" 12
Packit Service 4684c1
the parse type of the extension (see gnutls_ext_parse_type_t)
Packit Service 4684c1
.IP "gnutls_ext_recv_func recv_func" 12
Packit Service 4684c1
a function to receive the data
Packit Service 4684c1
.IP "gnutls_ext_send_func send_func" 12
Packit Service 4684c1
a function to send the data
Packit Service 4684c1
.IP "gnutls_ext_deinit_data_func deinit_func" 12
Packit Service 4684c1
a function deinitialize any private data
Packit Service 4684c1
.IP "gnutls_ext_pack_func pack_func" 12
Packit Service 4684c1
a function which serializes the extension's private data (used on session packing for resumption)
Packit Service 4684c1
.IP "gnutls_ext_unpack_func unpack_func" 12
Packit Service 4684c1
a function which will deserialize the extension's private data
Packit Service 4684c1
.IP "unsigned flags" 12
Packit Service 4684c1
must be zero or flags from \fBgnutls_ext_flags_t\fP
Packit Service 4684c1
.SH "DESCRIPTION"
Packit Service 4684c1
This function will register a new extension type. The extension will be
Packit Service 4684c1
only usable within the registered session. If the extension type
Packit Service 4684c1
is already registered then \fBGNUTLS_E_ALREADY_REGISTERED\fP will be returned,
Packit Service 4684c1
unless the flag \fBGNUTLS_EXT_FLAG_OVERRIDE_INTERNAL\fP is specified. The latter
Packit Service 4684c1
flag when specified can be used to override certain extensions introduced
Packit Service 4684c1
after 3.6.0. It is expected to be used by applications which handle
Packit Service 4684c1
custom extensions that are not currently supported in GnuTLS, but direct
Packit Service 4684c1
support for them may be added in the future.
Packit Service 4684c1
Packit Service 4684c1
Each registered extension can store temporary data into the gnutls_session_t
Packit Service 4684c1
structure using \fBgnutls_ext_set_data()\fP, and they can be retrieved using
Packit Service 4684c1
\fBgnutls_ext_get_data()\fP.
Packit Service 4684c1
Packit Service 4684c1
The validity of the extension registered can be given by the appropriate flags
Packit Service 4684c1
of \fBgnutls_ext_flags_t\fP. If no validity is given, then the registered extension
Packit Service 4684c1
will be valid for client and TLS1.2 server hello (or encrypted extensions for TLS1.3).
Packit Service 4684c1
.SH "RETURNS"
Packit Service 4684c1
\fBGNUTLS_E_SUCCESS\fP on success, otherwise a negative error code.
Packit Service 4684c1
.SH "SINCE"
Packit Service 4684c1
3.5.5
Packit Service 4684c1
.SH "REPORTING BUGS"
Packit Service 4684c1
Report bugs to <bugs@gnutls.org>.
Packit Service 4684c1
.br
Packit Service 4684c1
Home page: https://www.gnutls.org
Packit Service 4684c1
Packit Service 4684c1
.SH COPYRIGHT
Packit Service 4684c1
Copyright \(co 2001- Free Software Foundation, Inc., and others.
Packit Service 4684c1
.br
Packit Service 4684c1
Copying and distribution of this file, with or without modification,
Packit Service 4684c1
are permitted in any medium without royalty provided the copyright
Packit Service 4684c1
notice and this notice are preserved.
Packit Service 4684c1
.SH "SEE ALSO"
Packit Service 4684c1
The full documentation for
Packit Service 4684c1
.B gnutls
Packit Service 4684c1
is maintained as a Texinfo manual.
Packit Service 4684c1
If the /usr/share/doc/gnutls/
Packit Service 4684c1
directory does not contain the HTML form visit
Packit Service 4684c1
.B
Packit Service 4684c1
.IP https://www.gnutls.org/manual/
Packit Service 4684c1
.PP