dane_query_tlsa(3)

πŸ’– dane_query_tlsa β€” the gnutls girlie's guide πŸ’–

okay bestie, welcome to dane_query_tlsa(3), straight out of the gnutls manual (that's the manual name btw, she's that girl). pull up a chair, grab a boba, and let's get into it πŸ§‹βœ¨


🌸 NAME 🌸

dane_query_tlsa β€” literally just an API function, no cap πŸ’…


✨ SYNOPSIS ✨

#include <gnutls/dane.h>

int dane_query_tlsa(dane_state_t s, dane_query_t * r, const char * host,
const char * proto, unsigned int port);

that's the whole vibe right there 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • dane_state_t s β€” the DANE state structure. she's the main character, everything revolves around her πŸ‘‘
  • dane_query_t * r β€” a structure where the result gets placed. think of it as the lil basket the answers get dropped into 🧺
  • const char * host β€” the host name you're resolving. the who, basically 🌐
  • const char * proto β€” the protocol type, like tcp, udp, etc. pick your fighter πŸ’«
  • unsigned int port β€” the service port number, e.g. 443. yes bestie, the classic one πŸ”₯

πŸ¦‹ DESCRIPTION πŸ¦‹

so the way that this works is: this function will query the DNS server for the TLSA (DANE) data for the given host. that's it, that's the whole job. she goes out, she asks DNS, she comes back with the TLSA tea β˜•βœ¨


⭐ RETURNS ⭐

on success, DANE_E_SUCCESS (0) is returned πŸŽ‰ otherwise you get a negative error value, which is giving "not today" energy 😭


πŸ’€ REPORTING BUGS πŸ’€

found a bug? not you being the QA queen πŸ™ˆ report bugs to <bugs@gnutls.org>.

home page: https://www.gnutls.org β€” go, click, slay πŸ’–


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. iconic behaviour honestly, no notes 🫢


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

iykyk πŸ“šβœ¨


and that's the whole page bestie!! mwah πŸ’‹ this was dane_query_tlsa(3) from the gnutls manual, version 3.8.13 β€” go forth and query those TLSA records, you absolute legend πŸ‘‘πŸ’…πŸŽ€

πŸ“¦ where this page comes from