gnutls_x509_ext_export_aia(3)

✨ gnutls_x509_ext_export_aia(3) ✨

okay bestie, so this one lives in the gnutls manual, and it's about turning your Authority Information Access stuff into actual DER bytes. it's giving "encoder era" and honestly? iconic. πŸ’…


🌸 NAME 🌸

gnutls_x509_ext_export_aia β€” literally just an API function, that's it, that's the whole job πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/x509-ext.h>

int gnutls_x509_ext_export_aia(gnutls_x509_aia_t aia, gnutls_datum_t *
ext);

πŸ’– ARGUMENTS πŸ’–

  • gnutls_x509_aia_t aia β€” the authority info access. yes, THE authority info access. it's right there in the name, she's the main character πŸ‘‘
  • gnutls_datum_t * ext β€” the DER-encoded extension data. and listen, this one you MUST free using gnutls_free(). no cap. not free(), not vibes, gnutls_free(). don't leak her fr fr 😭

🌈 DESCRIPTION 🌈

so this function DER encodes the Authority Information Access (AIA) extension. that's the whole thing bestie. πŸ’«

if you want the actual lore, check RFC 5280 section 4.2.2.1 β€” that's where the extension gets explained properly, and it's lowkey required reading iykyk πŸ“š


⭐ RETURNS ⭐

on success, GNUTLS_E_SUCCESS (which is 0, she's humble like that) gets returned. 🫢

otherwise you get a negative error value and it's giving sad girl hours πŸ’€


🧚 SINCE 🧚

3.3.0 β€” an elder, honestly. been here since forever and still serving 🌸


πŸ“ REPORTING BUGS πŸ“

found a bug? don't suffer in silence, tell the girlies:


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: 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 babes πŸŽ€ this was gnutls version 3.8.13, and the manpage is dated the same, so shoutout to the gnutls crew β€” ily, periodt πŸ’–

πŸ“¦ where this page comes from