gnutls_hex_decode2(3)
π gnutls_hex_decode2(3) π
okay bestie, welcome to the gnutls manual β this one's a little function page and it's honestly so useful. sit with me for a sec π«Ά
β¨ NAME β¨
gnutls_hex_decode2 β it's an API function, and its whole job is turning hex back into actual bytes. the glow-up from hex to raw data, if you will π
π SYNOPSIS π
#include <gnutls/gnutls.h>
int gnutls_hex_decode2(const gnutls_datum_t * hex_data, gnutls_datum_t *
result);
like, that's it. two args, one int coming back at you. no cap. β¨
π ARGUMENTS π
const gnutls_datum_t * hex_dataβ this is the encoded data, i.e. the hex string situation you're handing over. it'sconst, so don't even think about touching it, she's read-only πgnutls_datum_t * resultβ and this is where the decoded output lands, in an allocated string. it's giving "here's your present, it's been malloc'd" π
π¦ DESCRIPTION π¦
so basically: this function decodes the encoded data you give it, using the hex encoding used by PSK password files. that's the specific flavour of hex we're talking about here, not just any hex-adjacent vibe. it decodes, it fills in your result, and it moves on with its life. iconic behaviour, truly. β¨
π RETURNS π
GNUTLS_E_PARSING_ERRORβ this is what you get when the hex data is invalid. the vibe check failed. π0β success, babe. we ate. π₯
π REPORTING BUGS π
found something cursed? spill it to <bugs@gnutls.org> β they wanna know, fr fr.
home page is right here: https://www.gnutls.org
πΈ COPYRIGHT πΈ
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.
and the license tea: copying and distribution of this file, with or without modification, are permitted in any medium without royalty, as long as you keep the copyright notice and this notice intact. so like, use it, remix it, whatever β just don't erase the credits, that's the rule, periodt. π«Ά
β SEE ALSO β
the full documentation for gnutls lives in a Texinfo manual (very thorough of them, honestly).
if the /usr/share/doc/gnutls/ directory does not contain the HTML form, then go visit:
https://www.gnutls.org/manual/
and that's the whole page, bestie π this came to you from the gnutls manual, version 3.8.13, and yeah it's stamped gnutls_hex_decode2(3) at the bottom β go decode something cute, mwah πβ¨π
π¦ 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