gnutls_hex_encode2(3)
β¨ gnutls_hex_encode2(3) β¨
okay bestie, welcome to the gnutls manual, page for gnutls_hex_encode2 π this one's a lil baby function but it's iconic in its own way, trust.
πΈ NAME πΈ
gnutls_hex_encode2 β it's an API function, periodt. that's the whole name, no crumbs.
π SYNOPSIS π
#include <gnutls/gnutls.h>
int gnutls_hex_encode2(const gnutls_datum_t * data, gnutls_datum_t *
result);
look at her. two args, one int return. she's giving "small but mighty" energy ngl π«Ά
π ARGUMENTS π
const gnutls_datum_t * dataβ this is the raw data, bestie. the actual bytes you wanna hex-ify. it'sconst, so like, hands off, we're just reading, no touchy πgnutls_datum_t * resultβ this is where the glow-up lands: the result, in an allocated string. note the asterisk, she's a pointer, she gets filled in for you β¨
π¦ DESCRIPTION π¦
so what does she DO? she takes the data you handed her and converts it to printable data using the hex encoding β the exact same hex encoding used in the PSK password files. iykyk π₯
β οΈ important lil caveat, no cap: the size of the result does NOT include the null terminator. so don't go counting that \0 in your length math, she's not in the club π
β RETURNS β
GNUTLS_E_SUCCESS on success, bestie!! π and otherwise... a negative error code π so like, if you see a negative number, something went wrong and you should go check your vibe (and your inputs). the way that error handling is literally mandatory here β do not skip it fr fr.
π REPORTING BUGS π
found a bug? spill the tea, but like, officially:
- 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. (yes queen, free as in freedom, we love to see 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 giving encyclopedia but make it slay πβ¨
and that's the page, bestie!! this manual page came to you from gnutls, version 3.8.13, and this absolute icon of a function, gnutls_hex_encode2(3). mwah π go hex-encode something and stay hydrated ππ¦
π¦ 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