gnutls_pkcs11_init(3)
π gnutls_pkcs11_init(3) β the gnutls manual, but make it cute β¨
okay bestie, welcome to the gnutls man pages, section 3, and today's main character is gnutls_pkcs11_init. it's giving "setup era" energy. let's get into it π«Ά
πΈ NAME πΈ
gnutls_pkcs11_init β literally just an API function, that's the whole job description π
β¨ SYNOPSIS β¨
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_init(unsigned int flags, const char *
deprecated_config_file);
yes the line break in the middle of the params is canon, we don't question the formatting gods π
π ARGUMENTS π
unsigned int flagsβ an ORed sequence ofGNUTLS_PKCS11_FLAG_*. like, you stack them up with bitwise OR and the vibes compound π«const char * deprecated_config_fileβ eitherNULL, or the location of a deprecated configuration file. it said what it said. deprecated. i don't make the rules π
π DESCRIPTION π
so this function initializes the PKCS 11 subsystem in gnutls. that's the whole glow-up arc. β¨
it'll read configuration files if GNUTLS_PKCS11_FLAG_AUTO is used, or it'll let you independently load PKCS 11 modules using gnutls_pkcs11_add_provider() if GNUTLS_PKCS11_FLAG_MANUAL is specified. two paths, both valid, choose your own adventure π
not me telling you that you DON'T need to call this function since GnuTLS 3.3.0 π because it's being called during the first request PKCS 11 operation anyway. that automatic call will assume the GNUTLS_PKCS11_FLAG_AUTO flag, no cap. but if another flags are required, then it must be called independently prior to any PKCS 11 operation. so like, manual mode girlies, this one's for you π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned. otherwise, a negative error value. that's it, that's the return. slay or fail, no in-between π
π¦ SINCE π¦
2.12.0 β an elder, an icon, a legend π
π REPORTING BUGS π
found a bug? don't be shy, report it to <bugs@gnutls.org>. they wanna hear from you fr fr π«Ά
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 yes, you can 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, go read the Texinfo manual, it's the source of truth bestie ππ
and that's the whole page!! this was gnutls_pkcs11_init(3) from gnutls 3.8.13, brought to you by the gnutls gang, dated however the build stamped it β mwah, take care of your PKCS 11 subsystem, drink water, and don't forget the flags ππ
β¨π«Ά
π¦ 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