1gnutls_session_get_id(3)            gnutls            gnutls_session_get_id(3)
2
3
4

NAME

6       gnutls_session_get_id - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int  gnutls_session_get_id(gnutls_session_t session, void * session_id,
12       size_t * session_id_size);
13

ARGUMENTS

15       gnutls_session_t session
16                   is a gnutls_session_t structure.
17
18       void * session_id
19                   is a pointer to space to hold the session id.
20
21       size_t * session_id_size
22                   is the session id's size, or it will be set  by  the  func‐
23                   tion.
24

DESCRIPTION

26       Returns  the  current session id. This can be used if you want to check
27       if the next session you tried to resume was actually resumed.  This  is
28       because resumed sessions have the same sessionID with the original ses‐
29       sion.
30
31       Session id is some data set by the server, that  identify  the  current
32       session.   In  TLS  1.0  and  SSL 3.0 session id is always less than 32
33       bytes.
34

RETURNS

36       On success, GNUTLS_E_SUCCESS (0) is returned, otherwise an  error  code
37       is returned.
38

REPORTING BUGS

40       Report    bugs    to    <bug-gnutls@gnu.org>.     GnuTLS   home   page:
41       http://www.gnu.org/software/gnutls/ General help  using  GNU  software:
42       http://www.gnu.org/gethelp/
43
45       Copyright © 2008 Free Software Foundation.
46       Copying  and  distribution  of this file, with or without modification,
47       are permitted in any medium  without  royalty  provided  the  copyright
48       notice and this notice are preserved.
49

SEE ALSO

51       The  full  documentation  for gnutls is maintained as a Texinfo manual.
52       If the info and gnutls programs are properly installed  at  your  site,
53       the command
54
55              info gnutls
56
57       should give you access to the complete manual.
58
59
60
61gnutls                             2.12.6.1           gnutls_session_get_id(3)
Impressum