gnutls_dtls_prestate_set(3)
π gnutls_dtls_prestate_set(3) π
okay bestie so this is a page from the gnutls manual β yes, that gnutls, the TLS/DTLS library β and it's about one very specific little function that does exactly one very specific little job. no cap. let's get into it π¦
β¨ NAME β¨
gnutls_dtls_prestate_set β it's an API function, that's the whole name-vibe πΈ
β¨ SYNOPSIS β¨
#include <gnutls/dtls.h>
void gnutls_dtls_prestate_set(gnutls_session_t session,
gnutls_dtls_prestate_st * prestate);
β¨ ARGUMENTS β¨
gnutls_session_t sessionβ a new session π like, freshly minted, brand new, never been used beforegnutls_dtls_prestate_st * prestateβ this lil guy contains the client's prestate π
β¨ DESCRIPTION β¨
so the way this works is β this function will associate the prestate that you got from the cookie authentication with the client, and hook it up to the newly established session. matchmaker behaviour, honestly π«Ά
and listen, the order MATTERS, it's giving choreography:
- this function must be called after a successful
gnutls_dtls_cookie_verify() - and it should be succeeded by the actual DTLS handshake using
gnutls_handshake()
so it's like: verify the cookie β set the prestate β do the handshake. in that order, bestie. periodt π
β¨ SINCE β¨
3.0 β this one's been around since 3.0, an OG π
β¨ REPORTING BUGS β¨
found a bug? tell the gnutls girlies about it:
- Report bugs 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.
legal said what it said and we respect it π
β¨ 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/
like, go read the whole thing, it's iconic πβ¨
and that's the page!! this was gnutls, version 3.8.13, and honestly? slay. go verify those cookies and set that prestate, bestie, you've got this π
ππ
π¦ 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