1gnutls_session_get_data(3) gnutls gnutls_session_get_data(3)
2
3
4
6 gnutls_session_get_data - Returns all session parameters.
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_session_get_data(gnutls_session_t session, void * ses‐
12 sion_data, size_t * session_data_size);
13
15 gnutls_session_t session
16 is a gnutls_session_t structure.
17
18 void * session_data
19 is a pointer to space to hold the session.
20
21 size_t * session_data_size
22 is the session_data's size, or it will be set by the func‐
23 tion.
24
26 Returns all session parameters, in order to support resuming. The
27 client should call this, and keep the returned session, if he wants to
28 resume that current version later by calling gnutls_session_set_data()
29 This function must be called after a successful handshake.
30
31 Resuming sessions is really useful and speedups connections after a
32 succesful one.
33
35 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise an error code
36 is returned.
37
39 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
40 http://www.gnu.org/software/gnutls/ General help using GNU software:
41 http://www.gnu.org/gethelp/
42
44 Copyright © 2008 Free Software Foundation.
45 Copying and distribution of this file, with or without modification,
46 are permitted in any medium without royalty provided the copyright
47 notice and this notice are preserved.
48
50 The full documentation for gnutls is maintained as a Texinfo manual.
51 If the info and gnutls programs are properly installed at your site,
52 the command
53
54 info gnutls
55
56 should give you access to the complete manual.
57
58
59
60gnutls 2.8.6 gnutls_session_get_data(3)