dane_query_data(3)

πŸ’– dane_query_data(3) πŸ’–

okay bestie, welcome to the gnutls manual, and specifically the lil page for dane_query_data β€” yes it's a 3 page, yes it's library-coded, and yes we're gonna get through it together. grab a strawberry πŸ“


✨ NAME ✨

dane_query_data β€” API function πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/dane.h>

int dane_query_data(dane_query_t q, unsigned int idx, unsigned int *
usage, unsigned int * type, unsigned int * match, gnutls_datum_t *
data);

like... she's a whole function, she takes six things, and she wants your pointers. iconic honestly.


πŸŽ€ ARGUMENTS πŸŽ€

  • dane_query_t q β€” the query result structure, aka the whole vibe you're pulling data out of πŸ¦‹
  • unsigned int idx β€” the index of the query response. yes queen, you gotta say which one 🫢
  • unsigned int * usage β€” the certificate usage (peep dane_cert_usage_t for the deets) ✨
  • unsigned int * type β€” the certificate type (that's dane_cert_type_t, go look) πŸ’œ
  • unsigned int * match β€” the DANE matching type (dane_match_type_t, she's right there) 🌈
  • gnutls_datum_t * data β€” the DANE data itself. the main character. πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

so basically: this function will provide the DANE data from the query response. that's it, that's the whole serve. you hand her a query result and an index, she fills in your usage / type / match / data pointers. slay. no cap. 🌸


⭐ RETURNS ⭐

on success, DANE_E_SUCCESS (0) is returned, otherwise a negative error value. so like, zero is the good one here β€” don't let anyone tell you otherwise. 😭


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? not me gatekeeping β€” report it to bugs@gnutls.org. πŸ›

home page: https://www.gnutls.org


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. periodt. πŸ’…


🌈 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/

fr fr, that's the whole page. go forth and query your DANE data, bestie 🧚

okay bye ilysm, this was dane_query_data(3) from gnutls 3.8.13 β€” mwah, take care of her πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from