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:


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