dane_verification_status_print(3)
π dane_verification_status_print(3) β a gnutls moment
okay bestie, sit down, hydrate, because we're doing a gnutls man page and it's actually so cute. this one lives in the gnutls manual, section 3. yes, the same gnutls that does all your TLS stuff. let's get into it π
β¨ NAME β¨
dane_verification_status_print β literally an API function, that's the whole name, no notes π
β¨ SYNOPSIS β¨
#include <gnutls/dane.h>
int dane_verification_status_print(unsigned int status, gnutls_datum_t *
out, unsigned int flags);
there she is. three arguments, one int return, no drama πΈ
β¨ ARGUMENTS β¨
unsigned int statusβ the status flags you want printed. the whole point of the function, she's the main character πgnutls_datum_t * outβ a newly allocated datum holding a(0)terminated string. yes, you get a fresh datum out of this, she's brand new β¨unsigned int flagsβ should be zero. that's it. that's the instruction. zero. no cap π
β¨ DESCRIPTION β¨
so what does she do? this function will pretty print the status of a verification process β like, for example, the one you got from dane_verify_crt(). it's giving "make the cryptic status flags look cute and readable" π¦
β οΈ important bestie: the outputoutneeds to be deallocated usinggnutls_free(). do NOT forget her, she will leak and that's not the vibe π
β¨ RETURNS β¨
on success, GNUTLS_E_SUCCESS (0) is returned π otherwise you get a negative error value, which is the code equivalent of a sad face. not iconic, but honest π
β¨ REPORTING BUGS β¨
found a bug? spill the tea to the devs, they wanna know:
- 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 go forth, share her, 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/
that's the whole rabbit hole, bestie, go read the rest, iykyk π
k bye ily, this was gnutls 3.8.13 of the dane_verification_status_print(3) page π stay verified, stay pretty, and always gnutls_free() your datum β¨π
π¦ 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