gnutls_pkcs11_obj_get_exts(3)
β¨ NAME β¨
gnutls_pkcs11_obj_get_exts β it's an API function, bestie, and it's from the gnutls manual π
πΈ SYNOPSIS πΈ
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_obj_get_exts(gnutls_pkcs11_obj_t obj,
gnutls_x509_ext_st ** exts, unsigned int * exts_size, unsigned int
flags);
π ARGUMENTS π
gnutls_pkcs11_obj_t objβ okay so this one should contain agnutls_pkcs11_obj_ttype. That's the vibe. πgnutls_x509_ext_st ** extsβ a pointer to agnutls_x509_ext_stpointer. yes, a pointer to a pointer, we love a little inception moment πunsigned int * exts_sizeβ will be updated with the number ofexts. she's getting updated, not just read, iykyk πunsigned int flagsβ an Or sequence ofGNUTLS_PKCS11_OBJ_*flags. mix and match, it's giving build your own adventure β¨
π¦ DESCRIPTION π¦
So this function will return information about attached extensions that associate to the provided object β and like, that object should be a certificate, okay? no cap. π
The extensions in question are the attached p11-kit trust module extensions. that's the whole thing. that's the tea. π΅
β οΈ cleanup era, do NOT skip this: each element ofextsmust be deinitialized usinggnutls_x509_ext_deinit(), whileextsitself should be deallocated usinggnutls_free(). two different cleanup calls, bestie. don't mix them up. π
π RETURNS π
GNUTLS_E_SUCCESS (0) on success β slay π β or a negative error code on error. sad girl hours but make it a return value. π
β SINCE β
3.3.8 β she's been iconic since way back π«Ά
π REPORTING BUGS π
Found a bug? not me being the bearer of bad news but you gotta tell them:
- Report bugs 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, this is the permissive queen behaviour we stan.) π
π₯ 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, bestie π
this was written for gnutls 3.8.13, and it's literally the gnutls_pkcs11_obj_get_exts(3) page in the gnutls manual β periodt. π¦β¨
π¦ 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