gsasl_base64_from(3)
πΈ gsasl_base64_from(3) πΈ
okay bestie, so this is part of the gsasl manual (section 3, the library-function one, not the command one) and it's literally just this one little function that takes your Base64 nonsense and turns it back into actual bytes π
β¨ NAME β¨
gsasl_base64_from β it's an API function, she's a real one, a whole function in the API, no cap π«Ά
π SYNOPSIS π
#include <gsasl.h>
int gsasl_base64_from(const char * in, size_t inlen, char ** out, size_t
* outlen);
π¦ ARGUMENTS π¦
const char * inβ the input byte array babes, the raw stuff you're feeding in β¨size_t inlenβ how big that input byte array is, the size, the length, the whole vibe πchar ** outβ pointer to a newly allocated output byte array. yes, she mallocs for you, she's generous like that πsize_t * outlenβ pointer to the size of that newly allocated output byte array, so you know how much you got back π
π DESCRIPTION π
She decodes Base64 data. That's it, that's the job, and she ate π₯
β οΈ CRUCIAL, DO NOT SKIP: the out buffer must be deallocated by the caller. that's you. you free it. not her. she's not your mom π
Return value: Returns GSASL_OK on success (slay π), GSASL_BASE64_ERROR if the input was invalid (oop π), and GSASL_MALLOC_ERROR on memory allocation errors (the malloc said no π).
π SINCE π
0.2.2 β she's been here a while, an icon, a legend, main character energy since day one π
π REPORTING BUGS π
Found a bug? spill, bestie, tell someone:
- Report bugs to <bug-gsasl@gnu.org>.
- General guidelines for reporting bugs: https://www.gnu.org/gethelp/
- GNU SASL home page: https://www.gnu.org/software/gsasl/
π COPYRIGHT π
Copyright Β© 2002-2026 Simon Josefsson.
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. (basically: share her, but give her credit, periodt β¨)
π SEE ALSO π
The full documentation for gsasl is maintained as a Texinfo manual. If the info and gsasl programs are properly installed at your site, the command
info gsasl
should give you access to the complete manual. As an alternative you may obtain the manual from:
https://www.gnu.org/software/libidn/gsasl/manual/
and that's the whole page bestie, no cliffhanger, we covered everything π
written by the lovely people behind gsasl, version 2.2.4, and this page's date is gsasl_base64_from(3) β mwah, go decode something π
π¦ where this page comes from
- arch rolling: gsasl 2.2.4-1 Β· LGPL-2.1-or-later AND GPL-3.0-or-later AND GFDL-1.3-or-later
- ubuntu stonking: libgsasl-dev 2.2.4-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms