gnutls_pkcs11_add_provider(3)
β¨ gnutls_pkcs11_add_provider(3) β¨
okay bestie, welcome to the gnutls manual β yes that's the manual name, we're literally in it π this one's all about gnutls_pkcs11_add_provider, and it's genuinely so useful, let's get into it π
πΈ NAME πΈ
gnutls_pkcs11_add_provider β it's an API function, no cap π«Ά
π¦ SYNOPSIS π¦
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_add_provider(const char * name, const char * params);
look at that signature, it's giving clean β¨
π ARGUMENTS π
const char * nameβ the filename of the module ποΈ like, where the actual module lives on disk.const char * paramsβ should beNULL, or a known string π (which known string? scroll down to the description, i got you).
π DESCRIPTION π
so basically? this function loads a PKCS 11 module and adds it to the module list that gnutls uses. the moment you call it, that module is officially in the rotation and will be used for PKCS 11 operations π₯ main character energy fr fr.
if you're loading a module because you want it to be used for certificate verification, then pass the string 'trusted' as your params argument. that's the whole trick, iykyk π
β οΈ heads up bestie: this function is not thread safe. so like, don't be calling it from multiple threads at the same time and then act surprised, okay? π
β RETURNS β
- on success:
GNUTLS_E_SUCCESS(0) is returned π slay - otherwise: a negative error value π so like, always check it
π SINCE π
2.12.0 β it's been iconic for a minute π
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the girlies:
- 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, that's the real license text, keep it, it's important)
π 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, go visit:
https://www.gnutls.org/manual/
and that's the whole page, bestie!! this was gnutls_pkcs11_add_provider(3) from the gnutls 3.8.13 source π now go forth and load your modules 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