gnutls_handshake_write(3)
β¨ gnutls_handshake_write β¨
okay bestie, we're in the gnutls manual (that's the manual name, cute right? the whole family lives there) and today's main character is gnutls_handshake_write β an API function. yes. an actual function. let's go π
π NAME π
gnutls_handshake_write β API function
lowkey that's the whole name section. short. iconic. she said what she said.
π¦ SYNOPSIS π¦
#include <gnutls/gnutls.h>
int gnutls_handshake_write(gnutls_session_t session,
gnutls_record_encryption_level_t level, const void * data, size_t
data_size);
there she is. the whole signature. no notes β¨
π ARGUMENTS π
gnutls_session_t sessionβ is agnutls_session_ttype. yeah bestie, the type is the type, that's just how it is πgnutls_record_encryption_level_t levelβ the current encryption level for reading a handshake message. like, which layer of the outfit we're working with rn.const void * dataβ the (const) handshake data to be processed. it's const, so hands off, we're just looking πsize_t data_sizeβ the size of data. how much data. the data-ness of it. slay.
πΈ DESCRIPTION πΈ
so this function processes a handshake message in the encryption level you specified with level. that's the vibe. that's the assignment.
β οΈ but before you call this β and this part is not optional, bestie β a handshake read callback must be set onsession. do it withgnutls_handshake_set_read_function(). if you don't set it first, you're just out here raw-dogging a handshake and we don't do that π
so like: callback first, then this function. order matters. periodt.
β SINCE β
3.7.0
she's been around since 3.7.0, an elder stateswoman, we respect her π«Ά
π REPORTING BUGS π
found a bug? not you being the detective π 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. so like, take it, share it, just keep the receipts π
π§ 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 bestie, every option, every argument, every default, all of it, nothing skipped, no cap π β¨
this has been gnutls_handshake_write, page 3, from gnutls 3.8.13 β mwah, bye, go set that read callback first ππ
π¦ 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