gnutls_srp_base64_decode2(3)
π gnutls_srp_base64_decode2 β the girlies' guide to un-base64-ing your SRP data π
ok so this is a page from the gnutls manual, bestie. it's one function, it's small, it's lowkey iconic. let's get into it π«Ά
β¨ NAME β¨
gnutls_srp_base64_decode2 β an API function, and yes she IS serving API function energy π
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
int gnutls_srp_base64_decode2(const gnutls_datum_t * b64_data,
gnutls_datum_t * result);
ok so first things first, you gotta pull in the header, <gnutls/gnutls.h>, periodt. then you call her. that's the whole vibe.
π ARGUMENTS π
const gnutls_datum_t * b64_dataβ this one holds the encoded data. she's the mystery box, the locked vault, the "not me opening this" moment πgnutls_datum_t * resultβ and this? this is where the decoded data lies. it's the spot where the truth comes out, bestie. the decoded data literally lies there. sleeping. waiting for you. π
π¦ DESCRIPTION π¦
okay so here's the tea β
This function will decode the given encoded data. The decoded data will be allocated, and stored into result. And how does it decode, you ask? It will decode using the base64 algorithm as used in libsrp. that's the specific flavor, bestie, not just any base64, libsrp base64. iykyk.
You should use gnutls_free() to free the returned data. yes. seriously. don't be that girl who leaks memory. free your data, cleanse your soul, hydrate, moisturize π§ββοΈβ¨
β οΈ Warning! This base64 encoding is not the "standard" encoding, so do not use it for non-SRP purposes. no cap. she is NOT for general use, she is SRP-only, she is niche and she is fine with that π
π RETURNS π
0 on success, or an error code. that's it. that's the return. 0 = slay, error code = not slay, handle it accordingly π₯
π REPORTING BUGS π
found a bug? tell the girlies, they wanna know:
- 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: share the love, keep the receipts, no royalties required, we're all in this together π«Ά)
π 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!! go forth, decode responsibly, and remember: gnutls_free() is not a suggestion, it's a lifestyle π
β¨
this has been the gnutls manual, version 3.8.13, dated gnutls_srp_base64_decode2(3) β mwah, take care of her ππ
π¦ 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