gnutls_privkey_set_pin_function(3)

✨ gnutls_privkey_set_pin_function ✨

okay so bestie, this one lives in the gnutls manual and it's called gnutls_privkey_set_pin_function(3) β€” say that five times fast πŸ’…


🌸 NAME 🌸

gnutls_privkey_set_pin_function β€” literally an API function, that's the whole name, periodt


πŸŽ€ SYNOPSIS πŸŽ€

#include <gnutls/abstract.h>

void gnutls_privkey_set_pin_function(gnutls_privkey_t key,
gnutls_pin_callback_t fn, void * userdata);

like look at that signature. gorgeous. no notes. 🫢


πŸ’– ARGUMENTS πŸ’–

  • gnutls_privkey_t key β€” a key of type gnutls_privkey_t, aka the main character of this whole situation
  • gnutls_pin_callback_t fn β€” the callback, the lil function that's gonna get called
  • void * userdata β€” data associated with the callback, it's giving plus-one energy πŸŽ€

✨ DESCRIPTION ✨

so here's the tea: this function will set a callback function to be used when required to access the object. it overrides any other global PIN functions β€” yes, it's that girl, it takes priority πŸ’…

⚠️ note note note: this function must be called right after initialization to have effect. like, right after. don't be late to this party or it literally does nothing 😭

πŸ¦‹ SINCE πŸ¦‹

3.1.0 β€” she's been iconic for a minute, no cap ⭐


🌈 REPORTING BUGS 🌈

found a bug? don't suffer in silence bestie, report bugs to <bugs@gnutls.org>.

home page: https://www.gnutls.org


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. (iconic behavior fr fr 🫢)


πŸ’œ 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, we ate and left no crumbs πŸ’…βœ¨ this was gnutls version 3.8.13 with the copyright stretching from 2001 all the way to 2023 β€” mwah, go forth and set those PIN functions, ily πŸŽ€πŸ’–πŸ¦‹

πŸ“¦ where this page comes from