gnutls_pkcs11_token_get_flags(3)
β¨ gnutls_pkcs11_token_get_flags β¨
okay bestie, listen up π this one lives in the gnutls manual (yes, the whole big library, this is just one lil page of it) and it's literally just called gnutls_pkcs11_token_get_flags β an API function, no cap. it's giving "small but mighty" energy π
πΈ SYNOPSIS πΈ
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_token_get_flags(const char * url, unsigned int *
flags);
like, that's the whole vibe. two args, one int coming back at you π«Ά
π¦ ARGUMENTS π¦
const char * urlβ bestie this should contain a PKCS 11 URL. that's the whole job. drop the URL in here πunsigned int * flagsβ this is where the output flags go, and they're all theGNUTLS_PKCS11_TOKEN_*girlies. she writes into this pointer, so have somewhere for her to write π
π DESCRIPTION π
so what does she actually do? this function returns information about the PKCS 11 token flags. that's it. that's the tea β
the supported flags are:
GNUTLS_PKCS11_TOKEN_HWGNUTLS_PKCS11_TOKEN_TRUSTED
those are the only two that show up here, periodt. no extra secret flags hiding in the back, i checked π
β RETURNS β
GNUTLS_E_SUCCESS (which is 0, iconic) on success π or a negative error code if something went wrong π so like, always check the sign, babe.
π SINCE π
2.12.0 β she's been around since 2.12.0, an elder statesman but still slaying π
π REPORTING BUGS π
found a bug? don't be shy, report it to <bugs@gnutls.org>. π¬
home page is right here: https://www.gnutls.org β go say hi π
π 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 like, go forth and share, just keep the receipts bestie β¨
π§ 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 your main character documentation destination, iykyk π
and that's the page!! mwah π this was gnutls version 3.8.13, the gnutls_pkcs11_token_get_flags(3) page β go read your tokens' flags, you absolute legend πβ¨
π¦ 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