gnutls_x509_aia_set(3)

πŸ’– gnutls_x509_aia_set(3) β€” bestie edition πŸ’–

okay so this is a page from the gnutls manual, and it's literally about one function: gnutls_x509_aia_set. no cap, that's the whole vibe. let's get into it 🫢


✨ NAME ✨

gnutls_x509_aia_set β€” it's an API function, bestie πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/x509-ext.h>

int gnutls_x509_aia_set(gnutls_x509_aia_t aia, const char * oid,
       unsigned san_type, const gnutls_datum_t * san);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_aia_t aia β€” the authority info access, aka the thing we're writing into πŸ’–
  • const char * oid β€” the type of data. that's the vibe identifier fr fr
  • unsigned san_type β€” the type of the name (of gnutls_subject_alt_names_t)
  • const gnutls_datum_t * san β€” the alternative name data itself, the actual content ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

so what this function does: it stores the alternative name you hand it inside the aia type. that's it, that's the job. 🌈

typically the value for oid should be GNUTLS_OID_AD_OCSP, or GNUTLS_OID_AD_CAISSUERS. like, those are the ones you'd normally reach for, iykyk.

and here's a lil glow-up note: since version 3.5.7, the GNUTLS_SAN_RFC822NAME and GNUTLS_SAN_DNSNAME get converted to ACE format when necessary. obsessed with that πŸ’…


⭐ RETURNS ⭐

on success you get GNUTLS_E_SUCCESS (that's 0), and otherwise you get a negative error value. so like, if it's negative, something went sideways, bestie 😭


πŸ‘‘ SINCE πŸ‘‘

3.3.0 β€” she's been around a minute πŸ’œ


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found something cursed? report bugs to <bugs@gnutls.org>.

home page: https://www.gnutls.org 🌸


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 forth, 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, periodt πŸ’… this was the gnutls manual, version 3.8.13, for gnutls_x509_aia_set(3) β€” slay, go set some AIA bestie πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from