gnutls_pkcs11_obj_flags_get_str(3)

✨ gnutls_pkcs11_obj_flags_get_str ✨

okay bestie so you're deep in the gnutls manual (that's the manual name, iykyk) and you found this little function. it's an API function, and it's literally just here to turn your flag bits into a cute lil human-readable string πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/pkcs11.h>

char * gnutls_pkcs11_obj_flags_get_str(unsigned int flags);

πŸŽ€ ARGUMENTS πŸŽ€

  • unsigned int flags β€” bestie this holds the flags. that's it, that's the whole job. it's where you put your flags 🫢

πŸ’– DESCRIPTION πŸ’–

so here's the vibe: you hand this function an or-sequence of GNUTLS_PKCS11_OBJ_FLAG_MARK, and it hands you back an allocated string describing it. main character behavior honestly ✨

🚨 important bestie: that string is allocated, and you need to deallocate it using gnutls_free(). do not ghost it, do not forget it, free it. periodt.

πŸ‘‘ RETURNS πŸ‘‘

  • if flags is zero, NULL gets returned (no string, no drama, nothing)
  • otherwise, you get an allocated string πŸŽ€

⭐ SINCE ⭐

3.3.7 β€” she's been iconic since 3.3.7, no cap.


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? don't be shy, report it to <bugs@gnutls.org>. they want to hear from you fr fr.

home page: https://www.gnutls.org


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. slay, that's the license, we love a permissive moment 🌈


🌟 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, you ate it up πŸ“ this was gnutls, version 3.8.13, and yes that's the source and version β€” signed, sealed, delivered with love πŸ¦‹πŸ’–

πŸ“¦ where this page comes from