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 a gnutls_info_access_what_t type. yes bestie, it literally tells you what. iconic naming tbh
  • gnutls_datum_t * data β€” the output data, and heads up: you gotta free it with gnutls_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 what is GNUTLS_IA_OCSP_URI, then data will hold the OCSP URI 🫢
  • if what is GNUTLS_IA_CAISSUERS_URI, then data will 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:


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 that data with gnutls_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