gnutls_certifi...et_pin_function(3)
β¨ gnutls_certificate_set_pin_function β¨
okay bestie, welcome to the gnutls manual, page gnutls_certificate_set_pin_function(3) π this one's short, sweet, and honestly kinda iconic. let's get into it π«Ά
πΈ NAME πΈ
gnutls_certificate_set_pin_function β it's an API function, no cap π
π SYNOPSIS π
#include <gnutls/gnutls.h>
void
gnutls_certificate_set_pin_function(gnutls_certificate_credentials_t
cred, gnutls_pin_callback_t fn, void * userdata);
literally just three args and no return value. void-coded. it's giving "I do my job and I leave" πβ¨
π¦ ARGUMENTS π¦
gnutls_certificate_credentials_t credβ bestie this is agnutls_certificate_credentials_ttype. that's it, that's the whole description π it's the creds you're attaching stuff to.gnutls_pin_callback_t fnβ a PIN callback π the function that's gonna handle PIN duty.void * userdataβ data to be passed in the callback. your lil care package that rides along π
π DESCRIPTION π
so the way this works: this function sets a callback function that gets used when gnutls needs to access a protected object. think locked-up keys, PIN-protected vibes π
and hear me out β this one overrides any other global PIN functions. it's the main character. periodt. π
β οΈ okay but listen: this function must be called right after initialization to have effect. not later. not whenever. right after. if you're late, it simply does not care and does nothing for you π
β SINCE β
3.1.0 β old money, been serving since forever π
π REPORTING BUGS π
found a bug? spill it, fr fr π
- 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. π (yes queen, go ahead and 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/
iykyk, the whole lore is in there πβ¨
and that's the whole page bestie!! this lil cutie comes from gnutls 3.8.13 π«Άπ go set that PIN callback right after init, okay? love u, bye!! πΈπ¦π
π¦ 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