GNUTLS_PKCS11_PRIVKEY_SET_PIN_FUNCTION(3)
β¨ NAME β¨
okay bestie, gather round π this is gnutls_pkcs11_privkey_set_pin_function β an API function from the gnutls manual, and she's here to let you hand a private key its very own PIN callback. no cap. π
πΈ SYNOPSIS πΈ
#include <gnutls/pkcs11.h>
void gnutls_pkcs11_privkey_set_pin_function(gnutls_pkcs11_privkey_t key,
gnutls_pin_callback_t fn, void * userdata);
π¦ ARGUMENTS π¦
gnutls_pkcs11_privkey_t keyβ the private key in question, your main character πgnutls_pin_callback_t fnβ the callback. the moment. the icon β¨void * userdataβ data associated with the callback, aka the little bestie that rides along withfnπ«Ά
π DESCRIPTION π
so basically, this function will set a callback function to be used when required to access the object. lowkey essential.
and here's the tea: this function overrides the global one you set with gnutls_pkcs11_set_pin_function(). so if you set a global PIN function and then call this per-key one, this one wins. the global one is giving background character energy now. π
β SINCE β
3.1.0 β she's been iconic since way back. periodt.
π REPORTING BUGS π
found a bug? not me gatekeeping β 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. (slay, fr fr, that's the whole license vibe π)
π 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 gnutls_pkcs11_privkey_set_pin_function(3) from the gnutls manual, version 3.8.13 β drink your water, close your file descriptors, and go be the callback you want to see in the world πβ¨
π¦ 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