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
flagsis zero,NULLgets 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 π
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
- 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