dane_verify_crt_raw(3)
π dane_verify_crt_raw β the gnutls manual page, bestie edition π
okay so you're looking at dane_verify_crt_raw(3), a lil function from the gnutls library. it's the low-level bestie of the DANE verification squad. let's get into it β¨
πΈ NAME πΈ
dane_verify_crt_raw β literally an API function, that's the whole vibe π
π¦ SYNOPSIS π¦
#include <gnutls/dane.h>
int dane_verify_crt_raw(dane_state_t s, const gnutls_datum_t * chain,
unsigned chain_size, gnutls_certificate_type_t chain_type, dane_query_t
r, unsigned int sflags, unsigned int vflags, unsigned int * verify);
no cap, that's the exact signature. type it in and you're good π«Ά
β¨ ARGUMENTS β¨
dane_state_t sβ a DANE state structure. and yes bestie, it may beNULLπconst gnutls_datum_t * chainβ a certificate chain, slay πunsigned chain_sizeβ the size of the chain, periodtgnutls_certificate_type_t chain_typeβ the type of the certificate chain, iconicdane_query_t rβ the DANE data to check against πunsigned int sflagsβ flags for the initialization ofs(only if it'sNULL, iykyk)unsigned int vflagsβ verification flags, an OR'ed list ofdane_verify_flags_tπunsigned int * verifyβ an OR'ed list ofdane_verify_status_tπ
π DESCRIPTION π
so this is the low-level function of dane_verify_crt(). the way that means you should go read the high level function for the actual documentation β this one is giving "I do the work, she gets the credit" π
and here's the important bit, no cap: this function does not perform any resolving. it utilizes cached entries from r . so don't come at it expecting fresh lookups, bestie, it's working with what it's got π§
β RETURNS β
- a negative error code on error, obvs
DANE_E_SUCCESS(0) when the DANE entries were successfully parsed β and irrespective of whether they were verified π (checkverifyfor that tea, fr fr)- if no usable entries were encountered, you get
DANE_E_REQUESTED_DATA_NOT_AVAILABLEπ
π REPORTING BUGS π
found a bug? spill it to bugs@gnutls.org π«Ά
home page is right here: 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. that's the license tea, and it ate πΈ
π 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 version 3.8.13 β shoutout to the gnutls girlies, and to dane_verify_crt_raw(3) for being the raw, unfiltered, main character of DANE verification π
β¨ mwah π«Ά
π¦ 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