gnutls_x509_crt_set_pin_function(3)
π gnutls_x509_crt_set_pin_function β the gnutls manual, bestie edition π
okay so picture this: you're deep in the gnutls manual, page gnutls_x509_crt_set_pin_function(3), and you need to know who's gonna handle the PIN when something protected gets poked. That's this page. It's short, it's sweet, it's giving "one job, done correctly." β¨
β¨ NAME β¨
gnutls_x509_crt_set_pin_function β API function π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
void gnutls_x509_crt_set_pin_function(gnutls_x509_crt_t crt,
gnutls_pin_callback_t fn, void * userdata);
π ARGUMENTS π
gnutls_x509_crt_t crtβ the certificate structure. this is your girl, the cert we're attaching stuff to π¦gnutls_pin_callback_t fnβ the callback. the lil function that gets called, no cap πvoid * userdataβ data associated with the callback. your emotional support pointer π«Ά
π DESCRIPTION π
So here's the tea: this function sets a callback function that gets used whenever it's required to access a protected object. That's it, that's the whole vibe. π
And important β this one overrides the global function that was set using gnutls_pkcs11_set_pin_function(). So if you set a global PIN handler and then call this, this one wins. main character energy, honestly. π
Heads up bestie, plot twist: this callback is currently used only during the import of a PKCS 11 certificate with gnutls_x509_crt_import_url(). That's the one and only place it shows up right now. Not me warning you so you don't sit there wondering why it's not firing elsewhere π
β SINCE β
3.1.0 β she's been around a minute, fr fr π
π REPORTING BUGS π
Found something cursed? Report bugs to <bugs@gnutls.org>. They wanna hear it, iykyk.
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.
π 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/
that's the whole page, bestie, you ate it π
β¨ this was the gnutls manual, version 3.8.13 β no date on this footer so I'm not making one up, don't come for me π β and the page name is gnutls_x509_crt_set_pin_function(3). go set that callback, you icon ππ
π¦ 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