gnutls_x509_ex...uthority_key_id(3)

✨ NAME ✨

gnutls_x509_ext_export_authority_key_id β€” it's an API function, bestie πŸ’– and it lives in the gnutls manual. Yes, the page header is doing the truncated-name thing (gnutls_x509_ex...uthority_key_id(3)) but we all know who she is.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/x509-ext.h>

int gnutls_x509_ext_export_authority_key_id(gnutls_x509_aki_t aki,
                                            gnutls_datum_t * ext);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_aki_t aki β€” an authority key identifier that's already been initialized. Like, she's awake and ready, no cap. πŸ’…
  • gnutls_datum_t * ext β€” the DER-encoded extension data. Heads up bestie, you must free this using gnutls_free(). Not optional, not a vibe, just do it. 🫢

🌸 DESCRIPTION 🌸

Okay so here's the tea β˜• β€” this function takes the key identifier you handed it and converts it into a DER-encoded PKIX AuthorityKeyIdentifier extension. That's the whole plot. 🎬

And the output data sitting in ext? It gets allocated using gnutls_malloc(), so you already know what that means for cleanup (see above, we talked about this πŸ’€).


⭐ RETURNS ⭐

On success you get GNUTLS_E_SUCCESS (which is 0, iconic), and otherwise you get a negative error value. Slay if it's zero, cry if it's negative. 😭


🌈 SINCE 🌈

3.3.0 β€” she's been around, she's a veteran, respect her. πŸ‘‘


πŸ’œ REPORTING BUGS πŸ’œ

Found a bug? Don't suffer in silence, tell the girlies:


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. (Yes, that's the whole thing, verbatim energy, we 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/


That's the whole page, bestie πŸ’– go forth and export those authority key identifiers responsibly. This one's from the gnutls pages, version 3.8.13 β€” mwah, signing off πŸŽ€πŸ’…

πŸ“¦ where this page comes from