gnutls_pkcs11_set_token_function(3)
π gnutls_pkcs11_set_token_function(3) β the gnutls manual, but make it make sense π
okay bestie, sit down, hydrate, because we're about to talk about PKCS 11 tokens and honestly? this one is short and sweet. it's from the gnutls manual pages, and it's giving "small function, big responsibility." π
β¨ NAME β¨
gnutls_pkcs11_set_token_function β literally just an API function, no cap π
πΈ SYNOPSIS πΈ
#include <gnutls/pkcs11.h>
void gnutls_pkcs11_set_token_function(gnutls_pkcs11_token_callback_t fn,
void * userdata);
she's a void girlie, she returns nothing, she just does the thing. iconic behaviour fr fr π«Ά
π¦ ARGUMENTS π¦
gnutls_pkcs11_token_callback_t fnβ the token callback. this is your girl. the actual function that gets called. no notes. β¨void * userdataβ data to be supplied to callback. it's your little care package of whatever you wanna hand over tofnwhen it gets called. it's giving "bring snacks to the function." π
π DESCRIPTION π
so here's the vibe check: this function sets a callback function that gets used when a token needs to be inserted to continue PKCS 11 operations. π₯
that's it. that's the whole thing. you're basically telling gnutls "hey, if a token is missing and we can't keep going, call this function, mmkay?" and then you get to be the main character who handles it. periodt. π
β SINCE β
2.12.0 β she's been around since 2.12.0, a true elder stateswoman of the API. respect your elders. π
π REPORTING BUGS π
found a bug? don't gatekeep, report it bestie:
- Report bugs to <bugs@gnutls.org>.
- Home page: https://www.gnutls.org
not me asking you to actually file the bug instead of just complaining in the group chat π
π§ 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: yes you can copy 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 full thing, it's the whole vibe. iykyk πβ¨
and that's the tea, bestie π« β this page came from the gnutls manual, version 3.8.13, and it's the gnutls_pkcs11_set_token_function(3) page itself. go forth, set your callbacks, and slay π
ππ¦
π¦ 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