gnutls_pkcs11_obj_get_info(3)
β¨ gnutls_pkcs11_obj_get_info β¨
okay bestie, welcome to the gnutls manual page for gnutls_pkcs11_obj_get_info, and yes you're in the right place, this is literally the gnutls man page section 3 π
πΈ NAME πΈ
gnutls_pkcs11_obj_get_info β it's an API function, periodt π
π¦ SYNOPSIS π¦
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_obj_get_info(gnutls_pkcs11_obj_t obj,
gnutls_pkcs11_obj_info_t itype, void * output, size_t * output_size);
π ARGUMENTS π
gnutls_pkcs11_obj_t objβ this one should contain agnutls_pkcs11_obj_ttype. like, that's its whole job π«Άgnutls_pkcs11_obj_info_t itypeβ denotes the type of information you're asking for. it's giving "what do you wanna know, bestie" β¨void * outputβ this is where the output gets stored. your lil container πsize_t * output_sizeβ contains the maximum size of the output buffer, and then it gets overwritten with the actual size. glow-up moment, honestly π₯
π DESCRIPTION π
This function will return information about the PKCS11 certificate, such as the label, the id, and also the token information about where the key is stored. so much lore in one call, ngl π
When output is text, a null terminated string is written to output, and its string length is written to output_size β without the null terminator. the way that it's precise about that... iconic β
If the buffer is too small, output_size will contain the expected buffer size (with the null terminator, for text) and it'll return GNUTLS_E_SHORT_MEMORY_BUFFER. not a vibe, but at least it tells you what size to bring next time π
In versions previously to3.6.0this function included the null terminator tooutput_size. After3.6.0the output size doesn't include the terminator character. so if you're on old-old gnutls, adjust accordingly, no cap π
π RETURNS π
GNUTLS_E_SUCCESS (0) on success, or a negative error code on error. simple. clean. slay β¨
π§ SINCE π§
2.12.0 β she's been around a minute, respect her π
π REPORTING BUGS π
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. so generous, so main character π
π₯ 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/
okay that's the whole page, you ate that π
this was gnutls version 3.8.13, from the gnutls_pkcs11_obj_get_info manual page β go forth and query your PKCS11 objects, bestie πΈπ¦β¨
π¦ 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