Blame doc/manpages/gnutls_session_get_id.3

Packit 549fdc
.\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
Packit 549fdc
.TH "gnutls_session_get_id" 3 "3.6.2" "gnutls" "gnutls"
Packit 549fdc
.SH NAME
Packit 549fdc
gnutls_session_get_id \- API function
Packit 549fdc
.SH SYNOPSIS
Packit 549fdc
.B #include <gnutls/gnutls.h>
Packit 549fdc
.sp
Packit 549fdc
.BI "int gnutls_session_get_id(gnutls_session_t " session ", void * " session_id ", size_t * " session_id_size ");"
Packit 549fdc
.SH ARGUMENTS
Packit 549fdc
.IP "gnutls_session_t session" 12
Packit 549fdc
is a \fBgnutls_session_t\fP type.
Packit 549fdc
.IP "void * session_id" 12
Packit 549fdc
is a pointer to space to hold the session id.
Packit 549fdc
.IP "size_t * session_id_size" 12
Packit 549fdc
initially should contain the maximum  \fIsession_id\fP size and will be updated.
Packit 549fdc
.SH "DESCRIPTION"
Packit 549fdc
Returns the current session ID. This can be used if you want to
Packit 549fdc
check if the next session you tried to resume was actually
Packit 549fdc
resumed.  That is because resumed sessions share the same session ID
Packit 549fdc
with the original session.
Packit 549fdc
Packit 549fdc
The session ID is selected by the server, that identify the
Packit 549fdc
current session.  In all supported TLS protocols, the session id
Packit 549fdc
is less than \fBGNUTLS_MAX_SESSION_ID_SIZE\fP.
Packit 549fdc
.SH "RETURNS"
Packit 549fdc
On success, \fBGNUTLS_E_SUCCESS\fP (0) is returned, otherwise
Packit 549fdc
an error code is returned.
Packit 549fdc
.SH "REPORTING BUGS"
Packit 549fdc
Report bugs to <bugs@gnutls.org>.
Packit 549fdc
.br
Packit 549fdc
Home page: http://www.gnutls.org
Packit 549fdc
Packit 549fdc
.SH COPYRIGHT
Packit 549fdc
Copyright \(co 2001-2018 Free Software Foundation, Inc., and others.
Packit 549fdc
.br
Packit 549fdc
Copying and distribution of this file, with or without modification,
Packit 549fdc
are permitted in any medium without royalty provided the copyright
Packit 549fdc
notice and this notice are preserved.
Packit 549fdc
.SH "SEE ALSO"
Packit 549fdc
The full documentation for
Packit 549fdc
.B gnutls
Packit 549fdc
is maintained as a Texinfo manual.
Packit 549fdc
If the /usr/share/doc/gnutls/
Packit 549fdc
directory does not contain the HTML form visit
Packit 549fdc
.B
Packit 549fdc
.IP http://www.gnutls.org/manual/
Packit 549fdc
.PP