gnutls_pkcs11_obj_get_flags(3)
π gnutls_pkcs11_obj_get_flags β the vibe check for your PKCS#11 objects
okay so bestie, welcome to the gnutls manual (that's the manual name, slay) and today we're peeking at an icon: gnutls_pkcs11_obj_get_flags. It's an API function, it's from the gnutls family, and it does exactly one job and does it gorgeously. π
β¨ SYNOPSIS β¨
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_obj_get_flags(gnutls_pkcs11_obj_t obj, unsigned int *
oflags);
that's the whole thing. two args, one int coming back. no cap. π¦
πΈ ARGUMENTS πΈ
gnutls_pkcs11_obj_t objβ the pkcs11 object itself, the little main character we're inspecting πunsigned int * oflagsβ a pointer that will hold the output flags. she's an out-param, she gets filled in, that's her whole arc β¨
π DESCRIPTION π
so this function will return the flags of the object. and like, the oflags you passed in? it will be holding flags from gnutls_pkcs11_obj_flags. iykyk.
and specifically β not me being precise about this β that means the GNUTLS_PKCS11_OBJ_FLAG_MARK_* flags. those ones. the MARK ones. periodt. π
π RETURNS π
- on success:
GNUTLS_E_SUCCESS(0) is returned. we love a zero, zero is the dream π«Ά - otherwise: a negative error value. so like, if you see a negative number, that's not a vibe, that's a problem, go read your errors bestie π
β SINCE β
3.3.7 β she's been around a while, an elder stateswoman, iconic behavior π
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the people:
- 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.
(translation: use it, share it, remix it, just keep the receipts. legal girlies said what they said. π)
π§ 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 read it, it's giving β¨*comprehensive*β¨
real talk: the oflags pointer is how you get your answer out, so make sure it's pointing somewhere real. undefined behavior is not the aesthetic. π
okay that's the page!! this was gnutls version 3.8.13, gnutls_pkcs11_obj_get_flags(3), and the copyright sits at Β© 2001-2023 β thanks for coming to my TED talk, go forth and check your flags bestie, ily ππΈπ¦
π¦ 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