gnutls_pem_base64_decode(3)
π gnutls_pem_base64_decode(3) π
okay bestie, welcome to the gnutls manual, page for gnutls_pem_base64_decode β it's an API function and it's literally here to un-scramble your PEM data. this is from the gnutls 3.8.13 docs, so you know it's fresh. let's get into it π«Ά
β¨ NAME β¨
gnutls_pem_base64_decode β API function
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
int gnutls_pem_base64_decode(const char * header, const gnutls_datum_t *
b64_data, unsigned char * result, size_t * result_size);
π ARGUMENTS π
const char * headerβ a null terminated string holding the PEM header, like, for exampleCERTIFICATE. yes it's literally the word that goes in the header, no cap.const gnutls_datum_t * b64_dataβ this is where the encoded data lives. the vibe-coded blob goes here πunsigned char * resultβ the spot where the decoded data gets copied. this is your output destination, main character energy β¨size_t * result_sizeβ holds the size of the result. it's giving "how much room do we have / how much did we use" π
π¦ DESCRIPTION π¦
so this function will decode the given encoded data. that's the whole job, and it ate.
if the header you pass in is non NULL, this function will search for "-----BEGIN header" and decode only that part. otherwise β meaning if you gave it a NULL header β it will decode the first PEM packet found. periodt.
π RETURNS π
on success, GNUTLS_E_SUCCESS (0) is returned. and if the buffer you gave is not long enough, GNUTLS_E_SHORT_MEMORY_BUFFER is returned. or, you know, 0 on success. yes bestie, the manpage said success twice, and honestly? iconic. we respect the repetition π
π REPORTING BUGS π
found a bug? spill it 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. so like, 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 β no skips, no cuts, every single detail kept π«Άβ¨ this was gnutls 3.8.13, page gnutls_pem_base64_decode(3), from the gnutls manual. go decode something cute ππΈπ
π¦ 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