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:


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