gnutls_pkcs11_obj_get_ptr(3)
π gnutls_pkcs11_obj_get_ptr(3) π
okay bestie, so this one lives in the gnutls manual (yes, that gnutls, the β¨iconicβ¨ TLS library) and it's literally just called gnutls_pkcs11_obj_get_ptr. She's an API function, she's shy, she just wants to hand you some pointers. no cap. π«Ά
πΈ NAME πΈ
gnutls_pkcs11_obj_get_ptr β API function π
β¨ SYNOPSIS β¨
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_obj_get_ptr(gnutls_pkcs11_obj_t obj, void ** ptr, void
** session, void ** ohandle, unsigned long * slot_id, unsigned int
flags);
like, that's the whole vibe. one include, one function call, six arguments. slay. π
π¦ ARGUMENTS π¦
gnutls_pkcs11_obj_t objβ bestie this one should contain agnutls_pkcs11_obj_ttype. that's the whole assignment. πvoid ** ptrβ she will contain theCK_FUNCTION_LIST_PTRpointer (and yes, she may be NULL, no pressure). πvoid ** sessionβ will contain theCK_SESSION_HANDLEof the object. that's the tea. πvoid ** ohandleβ will contain theCK_OBJECT_HANDLEof the object. iconic. β¨unsigned long * slot_idβ the identifier of the slot (may be NULL, she's flexible like that). πunsigned int flagsβ an Or sequence ofGNUTLS_PKCS11_OBJ_*flags. bring the whole alphabet if you want. π₯
π« DESCRIPTION π«
okay so what she does: she obtains the PKCS11 session handles of an object. that's it. that's the job.
β οΈ but listen βsessionandohandlemust be deinitialized by the caller. that's on YOU, bestie. not her. she hands them over and walks away like a main character. π
the returned pointers are independent of the obj lifetime β so even if obj dips out of the function, those pointers are still doing their thing. no strings attached, fr fr. π
β RETURNS β
GNUTLS_E_SUCCESS (0) on success, or a negative error code if the vibe check fails. π
π SINCE π
3.6.3 β she's been around. vintage. antique. a legend. π
π REPORTING BUGS π
found a bug? don't be shy, report it to <bugs@gnutls.org>.
home page is right here: https://www.gnutls.org β go say hi. π«Ά
π 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 means you can share the love, just keep the receipts. periodt. β¨)
πΈ 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, go visit:
https://www.gnutls.org/manual/
that's your girl. that's where the rest of the lore lives. π
and that's the whole page, bestie!! πβ¨ππ¦πΈπ π«Ά
kisses, this was gnutls_pkcs11_obj_get_ptr(3) from the gnutls manual, version 3.8.13. go forth and deinitialize your handles. πππ
π¦ 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