gnutls_x509_ex..._subject_key_id(3)
β¨ NAME β¨
gnutls_x509_ext_export_subject_key_id β it's an API function bestie, and it's giving "turn my key id into a whole DER extension" π
So this lives in the gnutls manual, and we're gonna walk through it together, okay? No stress.
π SYNOPSIS π
#include <gnutls/x509-ext.h>
int gnutls_x509_ext_export_subject_key_id(const gnutls_datum_t * id,
gnutls_datum_t * ext);
π¦ ARGUMENTS π¦
const gnutls_datum_t * idβ the key identifier, periodt. That's the thing you're bringing to the party.gnutls_datum_t * extβ the DER-encoded extension data that comes out of this. Lowkey important: you must free it usinggnutls_free(). Do not forget. I will know. π
πΈ DESCRIPTION πΈ
Okay so real talk: this function takes the key identifier you hand it and converts it into a DER-encoded PKIX SubjectKeyIdentifier extension. That's the glow-up. β¨
And the output data sitting in ext? It gets allocated using gnutls_malloc(). So yeah, that's why you gotta free it yourself β you own it now, bestie. π«Ά
π RETURNS π
On success you get GNUTLS_E_SUCCESS (0) back, and that's the slay. Otherwise you get a negative error value, which is the vibe check failing. π
β SINCE β
3.3.0 β been iconic since day one, fr fr.
π REPORTING BUGS π
Found a bug? Not me being the one to tell you β go report it 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. (Yes that's the whole legal vibe, and it's unhinged in the best way. Copy away, respectfully. π)
π₯ SEE ALSO π₯
The full documentation for gnutls is maintained as a Texinfo manual. So if the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit
https://www.gnutls.org/manual/
iykyk. π
And that's the whole page, bestie β this was gnutls, version 3.8.13, and the page is gnutls_x509_ex..._subject_key_id(3). Go forth and export those subject key identifiers. ππ§
π¦ 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