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                   initially should contain the maximum  session_id  size  and
23                   will be updated.
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.  That  is
28       because  resumed  sessions  share the same session ID with the original
29       session.
30
31       The session ID is selected 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 <bugs@gnutls.org>.
41       Home page: http://www.gnutls.org
42
43
45       Copyright © 2001-2014 Free Software Foundation, Inc..
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 /usr/share/doc/gnutls/ directory does not contain the HTML  form
53       visit
54
55       http://www.gnutls.org/manual/
56
57gnutls                              3.3.29            gnutls_session_get_id(3)
Impressum