GNUTLS_PKCS11_OBJ_SET_PIN_FUNCTION(3)
π gnutls_pkcs11_obj_set_pin_function β the manual page, bestie edition π
okay so this is one of the gnutls man pages (yes, that gnutls, the TLS library, she's iconic) and today we're doing gnutls_pkcs11_obj_set_pin_function. it's an API function. it's tiny. it's powerful. let's go π
β¨ NAME β¨
gnutls_pkcs11_obj_set_pin_function β it's an API function, bestie π
πΈ SYNOPSIS πΈ
#include <gnutls/pkcs11.h>
void gnutls_pkcs11_obj_set_pin_function(gnutls_pkcs11_obj_t obj,
gnutls_pin_callback_t fn, void * userdata);
like look at her. three args, returns nothing, does exactly one thing. main character energy fr fr π
π¦ ARGUMENTS π¦
gnutls_pkcs11_obj_t objβ the object structure. this is the little guy you're attaching the callback to π«Άgnutls_pin_callback_t fnβ the callback. the function. the moment. β¨void * userdataβ data associated with the callback. your lil backpack of stuff you wanna hand tofnwhen it gets called π
π DESCRIPTION π
so what does she actually do? this function will set a callback function to be used when required to access the object. that's it. that's the whole job. no cap π§
and here's the slay part: this function overrides the global set using gnutls_pkcs11_set_pin_function(). so if you already set a global pin function and now you want this one specific object to do its own thing? yeah. this is how. per-object callback, global callback found crying in the club ππ
β SINCE β
3.1.0 β she's been around. vintage. classic. still eating π₯
π REPORTING BUGS π
found a bug? don't gatekeep, report it:
- 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.
(translation: use it, share it, just keep the receipts π)
π 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/
like, go read the whole thing. it's giving β¨comprehensiveβ¨ iykyk
and that's the page, bestie!! π this little legend comes to you from gnutls 3.8.13, dated with all the love of a Free Software Foundation copyright spanning 2001β2023. go forth and set those pin functions, one object at a time. 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