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