gnutls_x509_ex..._subject_key_id(3)
β¨ gnutls_x509_ext_import_subject_key_id β¨
okay bestie, so this one lives in the gnutls manual, section 3, under the very cute abbreviated name gnutls_x509_ex..._subject_key_id(3) (yes the middle got eaten, it's giving βοΈ, we move on). It's an API function, and it's about pulling a subject key ID out of a DER extension. Let's go π
π¦ NAME π¦
gnutls_x509_ext_import_subject_key_id β it's an API function, periodt.
πΈ SYNOPSIS πΈ
#include <gnutls/x509-ext.h>
int gnutls_x509_ext_import_subject_key_id(const gnutls_datum_t * ext,
gnutls_datum_t * id);
like. it's so simple. look at her. iconic π
π ARGUMENTS π
const gnutls_datum_t * extβ this is a DER encoded extension. that's the vibe. that's all it is. DER. encoded. extension. no cap.gnutls_datum_t * idβ she's the output, bestie π«Ά this is where the subject key ID ends up living. will contain the subject key ID.
β¨ DESCRIPTION β¨
so what does she actually DO. she will return the subject key ID stored in the provided SubjectKeyIdentifier extension. that's the whole job. the way she just... does it π
and listen β the ID gets allocated using gnutls_malloc(). so it's yours, okay? you own that memory. it's your child now. take care of it π§
β RETURNS β
- on success,
GNUTLS_E_SUCCESS(0) is returned π slay GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLEif the extension is not present β like, she looked, bestie, and it's just not there π- otherwise, a negative error value. yeah. that one's on you, fr fr.
π SINCE π
3.3.0 β she's been around a minute, an elder icon π
π REPORTING BUGS π
found a bug? not the vibe. report it to <bugs@gnutls.org> π
home page is right here: 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. (translation: go off, just keep the receipt π§Ύβ¨)
π SEE ALSO π
the full documentation for gnutls is maintained as a Texinfo manual, iykyk π if the /usr/share/doc/gnutls/ directory does not contain the HTML form, then visit:
https://www.gnutls.org/manual/
and that's the whole page, bestie π no gatekeeping, no skipped options, we ate and left no crumbs π½οΈβ¨
this was gnutls 3.8.13, so if you're out here reading this in the future, just know she said what she said π bye!! π¦ππ
π¦ 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