1gnutls_dtls_cookie_verify(3) gnutls gnutls_dtls_cookie_verify(3)
2
3
4
6 gnutls_dtls_cookie_verify - API function
7
9 #include <gnutls/dtls.h>
10
11 int gnutls_dtls_cookie_verify(gnutls_datum_t * key, void * client_data,
12 size_t client_data_size, void * _msg, size_t msg_size,
13 gnutls_dtls_prestate_st * prestate);
14
16 gnutls_datum_t * key
17 is a random key to be used at cookie generation
18
19 void * client_data
20 contains data identifying the client (i.e. address)
21
22 size_t client_data_size
23 The size of client's data
24
25 void * _msg An incoming message that initiates a connection.
26
27 size_t msg_size
28 The size of the message.
29
30 gnutls_dtls_prestate_st * prestate
31 The cookie of this client.
32
34 This function will verify the received message for a valid cookie. If a
35 valid cookie is returned then it should be associated with the session
36 using gnutls_dtls_prestate_set();
37
38 This function must be called after gnutls_dtls_cookie_send().
39
41 GNUTLS_E_SUCCESS (0) on success, or a negative error code.
42
44 3.0
45
47 Report bugs to <bugs@gnutls.org>.
48 Home page: https://www.gnutls.org
49
50
52 Copyright © 2001-2023 Free Software Foundation, Inc., and others.
53 Copying and distribution of this file, with or without modification,
54 are permitted in any medium without royalty provided the copyright no‐
55 tice and this notice are preserved.
56
58 The full documentation for gnutls is maintained as a Texinfo manual.
59 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
60 visit
61
62 https://www.gnutls.org/manual/
63
64gnutls 3.8.2 gnutls_dtls_cookie_verify(3)