blob: 31c658f369d875311340db49fe0ae5b9601b7c0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
@deftypefun {int} {gnutls_dtls_cookie_verify} (gnutls_datum_t * @var{key}, void * @var{client_data}, size_t @var{client_data_size}, void * @var{_msg}, size_t @var{msg_size}, gnutls_dtls_prestate_st * @var{prestate})
@var{key}: is a random key to be used at cookie generation
@var{client_data}: contains data identifying the client (i.e. address)
@var{client_data_size}: The size of client's data
@var{_msg}: An incoming message that initiates a connection.
@var{msg_size}: The size of the message.
@var{prestate}: The cookie of this client.
This function will verify the received message for
a valid cookie. If a valid cookie is returned then
it should be associated with the session using
@code{gnutls_dtls_prestate_set()} ;
This function must be called after @code{gnutls_dtls_cookie_send()} .
@strong{Returns:} @code{GNUTLS_E_SUCCESS} (0) on success, or a negative error code.
@strong{Since:} 3.0
@end deftypefun
|