gnutls_utf8_password_normalize(3)
β¨ gnutls_utf8_password_normalize β¨
okay bestie, welcome to the gnutls manual π this one's a lil API function page and it's lowkey iconic, so let's get into it.
πΈ NAME πΈ
gnutls_utf8_password_normalize β it's an API function, periodt.
π SYNOPSIS π
#include <gnutls/gnutls.h>
int gnutls_utf8_password_normalize(const unsigned char * password,
unsigned plen, gnutls_datum_t * out, unsigned flags);
π¦ ARGUMENTS π¦
const unsigned char * passwordβ this is holding your UTF-8 formatted password, like the actual vibes you're trying to normalize πunsigned plenβ the length of the password you just handed over. gotta know how many bytes we're working with, no cap.gnutls_datum_t * outβ where the result lands: a null-terminated allocated string. yes bestie, it's allocated, it's yours now π«Άunsigned flagsβ should be zero. that's it. that's the whole vibe. zero.
β DESCRIPTION β
so what does this actually do? it will convert the UTF-8 password you gave it according to the normalization rules in RFC7613. it's giving "let me tidy this up for you" energy, fr fr. π§
and here's the tea: if the flag GNUTLS_UTF8_IGNORE_ERRS is specified, then any UTF-8 encoding errors will be ignored, and in that case the output will be a copy of the input. like, no transformation, just a lil duplicate. main character behavior honestly.
π RETURNS π
GNUTLS_E_INVALID_UTF8_STRINGβ when the UTF-8 data is invalid, aka the vibe check failed π0β on success. we love to see it π
π SINCE π
3.5.7 β been around since then, an OG β¨
π REPORTING BUGS π
found a bug? don't suffer in silence bestie, tell the devs:
- 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.
(translation: go off, 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!! πΈ this was the gnutls manual, version 3.8.13, documenting gnutls_utf8_password_normalize(3) β now go normalize some passwords and slay π
β¨π¦
π¦ 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