gnutls_x509_ext_import_aia(3)
π gnutls_x509_ext_import_aia β okay bestie, let's get this AIA out of the DER π
Hiii so this is a page straight out of the gnutls manual, and it's about one little function that goes digging in DER-encoded extension bytes and pulls out the Authority Information Access extension for you. It's an API function. It's iconic. Let's go π¦
β¨ NAME β¨
gnutls_x509_ext_import_aia β an API function, no cap π
πΈ SYNOPSIS πΈ
#include <gnutls/x509-ext.h>
int gnutls_x509_ext_import_aia(const gnutls_datum_t * ext,
gnutls_x509_aia_t aia, unsigned int flags);
π ARGUMENTS π
const gnutls_datum_t * extβ the DER-encoded extension data. This is the raw byte blob you're handing over, bestie π¦gnutls_x509_aia_t aiaβ the authority info access. Like, the actual thing you want it to become π«Άunsigned int flagsβ should be zero. That's it. Zero. Don't get creative π
π DESCRIPTION π
Okay so the way this works: this function extracts the Authority Information Access (AIA) extension from the DER-encoded data you provided. If you wanna read up on the extension itself, go peep RFC 5280 section 4.2.2.1 β it's all there for more information on it, iykyk.
And what's actually inside this AIA extension? It holds a sequence of AccessDescription (AD) data. So like, a whole little lineup of AD entries, all chillin' in there, and this function is the one that gets them out. Slay β¨
β RETURNS β
On success, you get GNUTLS_E_SUCCESS (0) back β the good ending, we love to see it π
Otherwise? You get a negative error value. So if it's negative, something went sideways, and that's your sign, fr fr π
π°οΈ SINCE π°οΈ
3.3.0 β she's been around a minute, an elder icon π
π REPORTING BUGS π
Found a bug? Don't be shy, report 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. (Which is a very generous vibe of them, honestly π)
π 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 β every flag, every value, every warning, all of it, periodt π
This lil love letter came to you courtesy of the gnutls manual, version 3.8.13 β mwah, take care, and may all your extensions import cleanly ππ
π¦ 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