1gnutls_rehandshake(3) gnutls gnutls_rehandshake(3)
2
3
4
6 gnutls_rehandshake - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_rehandshake(gnutls_session_t session);
12
14 gnutls_session_t session
15 is a gnutls_session_t structure.
16
18 This function will renegotiate security parameters with the client.
19 This should only be called in case of a server.
20
21 This message informs the peer that we want to renegotiate parameters
22 (perform a handshake).
23
24 If this function succeeds (returns 0), you must call the gnutls_hand‐
25 shake() function in order to negotiate the new parameters.
26
27 Since TLS is full duplex some application data might have been sent
28 during peer's processing of this message. In that case one should call
29 gnutls_record_recv() until GNUTLS_E_REHANDSHAKE is returned to clear
30 any pending data. Care must be taken if rehandshake is mandatory to
31 terminate if it does not start after some threshold.
32
33 If the client does not wish to renegotiate parameters he will should
34 with an alert message, thus the return code will be GNUTLS_E_WARN‐
35 ING_ALERT_RECEIVED and the alert will be GNUTLS_A_NO_RENEGOTIATION. A
36 client may also choose to ignore this message.
37
39 GNUTLS_E_SUCCESS on success, otherwise an error.
40
42 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
43 http://www.gnu.org/software/gnutls/ General help using GNU software:
44 http://www.gnu.org/gethelp/
45
47 Copyright © 2008 Free Software Foundation.
48 Copying and distribution of this file, with or without modification,
49 are permitted in any medium without royalty provided the copyright
50 notice and this notice are preserved.
51
53 The full documentation for gnutls is maintained as a Texinfo manual.
54 If the info and gnutls programs are properly installed at your site,
55 the command
56
57 info gnutls
58
59 should give you access to the complete manual.
60
61
62
63gnutls 2.12.6.1 gnutls_rehandshake(3)