gnutls_pkcs11_privkey_init(3)
β¨ gnutls_pkcs11_privkey_init(3) β¨
okay so bestie, welcome to the gnutls manual page for gnutls_pkcs11_privkey_init, and honestly? she's a lil setup function but she's important, so pay attention π
πΈ NAME πΈ
gnutls_pkcs11_privkey_init β API function
π SYNOPSIS π
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_privkey_init(gnutls_pkcs11_privkey_t * key);
π¦ ARGUMENTS π¦
gnutls_pkcs11_privkey_t * keyβ a pointer to the type you wanna initialize. that's it, that's the whole argument, she's low maintenance π
π DESCRIPTION π
so like, this function initializes a private key structure. that structure is your lil doorway to accessing an underlying PKCS11 object, which is a whole vibe fr fr π₯
here's the part you actually need to know: in versions of GnuTLS later than 3.5.11, the object is protected using locks, and a single gnutls_pkcs11_privkey_t can be re-used by many threads. she's thread-safe, periodt π
but no cap, for performance it's recommended to utilize one object per key per thread. sharing is caring, but sharing is also sometimes slow, iykyk π
β¨ RETURNS β¨
on success, GNUTLS_E_SUCCESS (0) is returned π otherwise you get a negative error value and you should go check yourself before you wreck yourself π
π REPORTING BUGS π
found a bug? spill it, bestie:
- 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. so basically, go off, 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/
and that's the whole page, you ate that π
π this was gnutls version 3.8.13, and the page is gnutls_pkcs11_privkey_init(3) β go forth and initialize responsibly, mwah π«ΆπΈ
π¦ 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