GNUTLS_X509_CRT_SET_AUTHORITY_KEY_ID(3)

πŸ’– gnutls_x509_crt_set_authority_key_id(3) πŸ’–

okay bestie so this is one of the pages from the gnutls manual β€” you know, the TLS library that literally runs half the internet's vibe check. and this specific page? it's about setting the authority key ID extension on an X.509 certificate. we love a niche but essential function, no cap. πŸŽ€


✨ NAME ✨

gnutls_x509_crt_set_authority_key_id β€” an API function, and yes it does exactly what the name says, iconic behaviour honestly


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_crt_set_authority_key_id(gnutls_x509_crt_t cert, const
                                         void * id, size_t id_size);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_x509_crt_t cert β€” a certificate, and its type is literally gnutls_x509_crt_t, so like, it's the certificate you're about to mess with πŸ’…
  • const void * id β€” the key ID. that's it. that's the whole thing.
  • size_t id_size β€” holds the size of the key ID field. the little number that says how big id actually is.

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea: this function sets the X.509 certificate's authority key ID extension. slay.

but bestie, listen β€” only the keyIdentifier field can be set with this function. that's the whole scope. no extras, no add-ons, just that one field. periodt. πŸ’…


⭐ RETURNS ⭐

if it works? you get GNUTLS_E_SUCCESS (that's a 0, the sweetest number) 🫢

if it doesn't? you get a negative error value. rude, but that's how you know something went sideways. 😭


πŸ› REPORTING BUGS πŸ›

found a bug? first of all, condolences. second of all, report it to <bugs@gnutls.org>.

home page is right here: https://www.gnutls.org β€” go touch grass on it, it's lovely 🌈


Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.

and the license vibe is: 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. so like, share it, remix it, whatever β€” just keep the receipts. πŸ’–


🌸 SEE ALSO 🌸

the full documentation for gnutls is maintained as a Texinfo manual. so if the /usr/share/doc/gnutls/ directory is not giving what it needs to give (i.e. it doesn't contain the HTML form), go visit:

https://www.gnutls.org/manual/


mwah πŸ’‹ that's the whole page. every flag, every arg, every number, all present and accounted for.

and a lil sign-off for the girlies keeping track: this page belongs to gnutls 3.8.13 β€” so when you're citing it, cite it right, iykyk. πŸ’œβœ¨

πŸ“¦ where this page comes from