gnutls_dtls_cookie_verify(3)
π gnutls_dtls_cookie_verify(3) π
okay bestie, welcome to the gnutls manual, page for gnutls_dtls_cookie_verify β yes it's an API function, yes it's from the gnutls manual, and yes we're gonna get through it together π«Ά
β¨ NAME β¨
gnutls_dtls_cookie_verify β the API function that does a lil vibe check on a DTLS cookie π₯
πΈ SYNOPSIS πΈ
#include <gnutls/dtls.h>
int gnutls_dtls_cookie_verify(gnutls_datum_t * key, void * client_data,
size_t client_data_size, void * _msg, size_t msg_size,
gnutls_dtls_prestate_st * prestate);
π ARGUMENTS π
gnutls_datum_t * keyβ bestie, this is a random key, and it's the one you use when you generate the cookie πͺvoid * client_dataβ this holds the data that identifies the client (so like, their address, iykyk)size_t client_data_sizeβ the size of the client's data, literally just how big it isvoid * _msgβ an incoming message that initiates a connection πsize_t msg_sizeβ the size of the message. that's it, that's the whole jobgnutls_dtls_prestate_st * prestateβ the cookie of this client πͺπ
π DESCRIPTION π
so what does this icon actually DO? it will verify the received message for a valid cookie β¨ and if a valid cookie comes back, then it should be associated with the session using gnutls_dtls_prestate_set(); β no cap, that's the move.
π¨ also, important, don't skip this: this function must be called after gnutls_dtls_cookie_send().
π RETURNS π
GNUTLS_E_SUCCESS (which is 0, slay) on success, or a negative error code π if it's not it.
β SINCE β
3.0 β she's been iconic since 3.0, periodt π
π¦ REPORTING BUGS π¦
found a bug? don't be shy, report it to <bugs@gnutls.org> π
Home page: https://www.gnutls.org
π§ COPYRIGHT π§
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. π«Ά
π SEE ALSO π
The full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form visit
https://www.gnutls.org/manual/
and that's the whole page babes πΈ this was gnutls_dtls_cookie_verify(3) from the gnutls manual, version 3.8.13, and the footer said gnutls_dtls_cookie_verify(3) β so go forth, verify those cookies, and stay iconic πβ¨π
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms