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:


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