gnutls_pubkey_set_pin_function(3)

✨ gnutls_pubkey_set_pin_function(3) ✨

okay bestie, welcome to the gnutls manual πŸ’– this one's a lil function called gnutls_pubkey_set_pin_function, and no cap, it's a short one, but it's lowkey important so stay with me 🫢


🌸 NAME 🌸

gnutls_pubkey_set_pin_function β€” it's an API function, periodt πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <gnutls/abstract.h>

void gnutls_pubkey_set_pin_function(gnutls_pubkey_t key,
gnutls_pin_callback_t fn, void * userdata);

like... look at her. so compact. so iconic ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_pubkey_t key β€” a key, of the type gnutls_pubkey_t. that's literally the whole vibe πŸ—οΈ
  • gnutls_pin_callback_t fn β€” the callback. the moment. the main character πŸ‘‘
  • void * userdata β€” data that's associated with the callback, like its lil emotional support buddy πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

so what does she do? 🧚

This function will set a callback function to be used when required to access the object. 🎯

And btw, this function overrides any other global PIN functions β€” she said "not on my watch", she's the priority now πŸ’… no cap.

⚠️ but listen β€” note that this function must be called right after initialization to have effect. like, RIGHT after. don't be late to the function-calling party, bestie 😭 timing is literally everything here.

⭐ SINCE ⭐

3.1.0 β€” an elder. a legend. been serving since way back 🌈


πŸ’€ REPORTING BUGS πŸ’€

found a bug? don't just suffer in silence, bestie 😀 report it:


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, that means you can share her around, 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/

go forth and read, iykyk πŸ“–πŸ¦‹


and that's the whole page, bestie!! πŸŽ€ this was gnutls version 3.8.13, gnutls_pubkey_set_pin_function(3) β€” mwah, slay, go call your callbacks right after init πŸ’…βœ¨πŸ’–

πŸ“¦ where this page comes from