gnutls_x509_cr...ity_info_access(3)
β¨ NAME β¨
gnutls_x509_crt_set_authority_info_access β bestie, this is the API function that sets the Authority Information Access extension on a certificate π
(it lives in the gnutls manual, in case the title up top was being mysterious)
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crt_set_authority_info_access(gnutls_x509_crt_t crt, int
what, gnutls_datum_t * data);
π ARGUMENTS π
gnutls_x509_crt_t crtβ the certificate that holds all this. she's the one getting the glow-up β¨int whatβ which data we're getting, and it's agnutls_info_access_what_ttype. yes bestie, it literally tells you what. iconic naming tbhgnutls_datum_t * dataβ the output data, and heads up: you gotta free it withgnutls_free(). not me reminding you so you don't leak π
π¦ DESCRIPTION π¦
okay so. this function sets the Authority Information Access (AIA) extension β and if you want the receipts, go read RFC 5280 section 4.2.2.1. periodt π
the type of data that gets stored in data is specified via what, which should be gnutls_info_access_what_t values.
so like, here's the vibe check on what:
- if
whatisGNUTLS_IA_OCSP_URI, thendatawill hold the OCSP URI π«Ά - if
whatisGNUTLS_IA_CAISSUERS_URI, thendatawill hold the caIssuers URI π
π RETURNS π
on success you get GNUTLS_E_SUCCESS (which is 0, slay). otherwise you get a negative error value, and honestly? it's giving sad girl hours π
β SINCE β
3.0 β she's been here since 3.0, a true veteran queen π
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the devs:
- report bugs 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. fr fr, just keep the notice π
π₯ 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/
reminder bestie: free thatdatawithgnutls_free()or it's gonna haunt you π«Ά
and that's the whole page, no cap π this was gnutls 3.8.13 β the source being the gnutls project itself β so go forth, set those AIA extensions, and stay iconic πΈβ¨
π¦ 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