dane_verify_session_crt(3)
β¨ NAME β¨
dane_verify_session_crt β bestie, it's an API function π
π¦ SYNOPSIS π¦
#include <gnutls/dane.h>
int dane_verify_session_crt(dane_state_t s, gnutls_session_t session,
const char * hostname, const char * proto, unsigned int port, unsigned
int sflags, unsigned int vflags, unsigned int * verify);
πΈ ARGUMENTS πΈ
okay so here's what you're feeding it, one by one, no skipping π«Ά
dane_state_t sβ a DANE state structure (and yeah, it's allowed to beNULL, she's flexible like that)gnutls_session_t sessionβ a gnutls session. the main character, literallyconst char * hostnameβ the hostname that's associated with the chainconst char * protoβ the protocol of the service that's connecting (thinktcp, iykyk)unsigned int portβ the port of the service that's connecting (like, say,443π)unsigned int sflagsβ flags for the initialization ofs(only matters if it'sNULL, bestie)unsigned int vflagsβ verification flags; an OR'ed list ofdane_verify_flags_tunsigned int * verifyβ an OR'ed list ofdane_verify_status_t. this is where the receipts go π§Ύ
π DESCRIPTION π
so what does she actually do? this function will verify the session's certificate chain against the CA constrains and/or the certificate available via DANE. that's the whole vibe. for more info, go read dane_verify_crt() β she's the older sister, she explains everything π
β οΈ ok important: this will not verify the chain for validity. unless the DANE verification is restricted to end certificates, that has to be performed separately using gnutls_certificate_verify_peers3(). do not skip this step, I'm begging π
π₯ RETURNS π₯
- a negative error code on error π
DANE_E_SUCCESS(0) when the DANE entries were successfully parsed β and no, that's irrespective of whether they were verified (checkverifyfor that tea β)- and if no usable entries were encountered, you get
DANE_E_REQUESTED_DATA_NOT_AVAILABLE. it's giving "nothing to see here" π
π REPORTING BUGS π
found a bug? don't be shy, report it 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. slay, and also legally binding π
β 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 was gnutls 3.8.13, manual page dane_verify_session_crt(3) β go forth and verify those chains, you absolute icon ππ¦
π¦ 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