gnutls_record_set_state(3)
π gnutls_record_set_state(3) π
okay bestie, welcome to the gnutls manual page for gnutls_record_set_state β¨ β yes it's a mouthful, no you're not gonna forget it, let's go πΈ
π NAME π
gnutls_record_set_state β API function, and she's lowkey iconic for it π
β¨ SYNOPSIS β¨
#include <gnutls/gnutls.h>
int gnutls_record_set_state(gnutls_session_t session, unsigned read,
const unsigned char [8] seq_number);
there she is π«Ά look at her. three args, one return value, no drama.
πΈ ARGUMENTS πΈ
gnutls_session_t sessionβ it's agnutls_session_ttype. that's the whole vibe, that's the whole description, we move πunsigned readβ if it's non-zero, you're talking about the read parameters. if it's zero, it's the write ones instead. pick your fighter πconst unsigned char [8] seq_numberβ a 64-bit sequence number, which is genuinely a lot of number fr fr
π¦ DESCRIPTION π¦
so this function sets the sequence number in the current record state. that's it, that's the job π
and the way this is useful?? it's when sending and receiving get offloaded from gnutls β like, gnutls isn't the one doing the talking anymore, somebody else is, and you need to sync up the numbers. that is, if gnutls_record_get_state() was used. yes, the get one. this is the set one. they're a matching set, they're a duo, they ate π₯
β RETURNS β
GNUTLS_E_SUCCESS on success, or an error code. classic. no notes π
since 3.4.0 β an old queen, respect her π
π REPORTING BUGS π
found a bug? not on my watch β 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. (translation: share it, remix it, just keep the receipt π§Ύπ)
π SEE ALSO π
the full documentation for gnutls is maintained as a Texinfo manual π if the /usr/share/doc/gnutls/ directory does NOT have the HTML form, then bestie, you go here:
https://www.gnutls.org/manual/
and that's the whole page, we're done, we're free π¦ this was gnutls_record_set_state(3) from the gnutls 3.8.13 manual π
slay, go set some sequence numbers, i'm obsessed with you π«Άβ¨
π¦ 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