GNUTLS_CERTIFICATE_VERIFICATION_STATUS_PRINT(3)
β¨ NAME β¨
gnutls_certificate_verification_status_print β bestie, it's an API function π
okay so real quick, this lives in the gnutls manual (section 3, the library-functions girlies), and it's the one that takes your certificate verification status and makes it pretty. periodt.
π SYNOPSIS π
#include <gnutls/gnutls.h>
int gnutls_certificate_verification_status_print(unsigned int status,
gnutls_certificate_type_t type, gnutls_datum_t * out, unsigned int
flags);
πΈ ARGUMENTS πΈ
unsigned int statusβ the status flags that you want printed, bestie. like the actual vibe report of your verification.gnutls_certificate_type_t typeβ the certificate type. yes ma'am, we need to know what kind.gnutls_datum_t * outβ a newly allocated datum holding a(0)terminated string. so like, it's fresh, it's yours, it's NUL-terminated πunsigned int flagsβ should be zero. that's it. that's the whole requirement. zero. π«Ά
π DESCRIPTION π
This function will pretty print the status of a verification process β for example the one you got from gnutls_certificate_verify_peers3(). so you do the verify, you get the status number, and then you call this to turn it into something your eyeballs can actually read instead of a cursed bitfield. iconic behaviour honestly.
β οΈ the outputoutneeds to be deallocated usinggnutls_free(). no cap. if you forget, that's a leak and the memory is gonna be sitting there like π forever. free your datum, bestie.
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned π otherwise you get a negative error value. so like, < 0 means something went sideways, 0 means slay.
π¦ SINCE π¦
3.1.4 β she's been around a minute, a true elder of the library π
π REPORTING BUGS π
Found a bug? spill the tea:
- 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. (so yes, share it, remix it, just keep the receipts π§)
π 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/
and that's the whole page, bestie!! π this little cutie comes to you from gnutls version 3.8.13 β go forth and pretty-print your statuses πβ¨
π¦ 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