ldns(3)

πŸ“¦
version 1.9.2 Β· 2 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– ldns(3) β€” Library Functions Manual πŸ’–

okay bestie, welcome to ldns(3), the manual page for the ldns library functions. two lil functions today, both about wrangling a ldns_key_list like the queen you are πŸ‘‘


✨ NAME ✨

ldns_key_list_push_key, ldns_key_list_pop_key β€” manipulate ldns_key_list

like. the whole vibe is "we push keys, we pop keys, we move on." no cap. πŸ’…


🌸 SYNOPSIS 🌸

first, the includes, because you literally cannot do anything without them:

#include <stdint.h>
#include <stdbool.h>

#include <ldns/ldns.h>

bool ldns_key_list_push_key(ldns_key_list *key_list, ldns_key *key);

ldns_key* ldns_key_list_pop_key(ldns_key_list *key_list);

look at that second one. returns a ldns_key*. iconic pointer energy. πŸ¦‹


πŸŽ€ DESCRIPTION πŸŽ€

🫢 ldns_key_list_push_key()

ldns_key_list_push_key() pushes a key to a keylist. that's it, that's the whole job. it's giving "add to the end, no drama." ✨

here's the deets:

  • key_list: the key_list to push to
  • key: the key to push
  • Returns false on error, otherwise true

so like, if it's mad it tells you with a false. no throwing hands, just a polite bool. 😌

πŸ’œ ldns_key_list_pop_key()

ldns_key_list_pop_key() pops the last rr from a keylist.

(yeah bestie, the manpage itself says "rr" there, even though we're in key-list land. we do not question the manpage. we simply report it. 🫑)

the deets:

  • key_list: the rr_list to pop from
  • Returns NULL if nothing to pop. Otherwise the popped RR
so if the list is empty you get NULL back, and you gotta handle that yourself. no free keys. 🫠

πŸ‘‘ AUTHOR πŸ‘‘

The ldns team at NLnet Labs. legends, honestly. πŸ’–


😭 REPORTING BUGS 😭

Please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues

fr fr if you find a bug, tell them. they wanna know. it's giving teamwork. πŸ›βœ¨


Copyright (c) 2004 - 2006 NLnet Labs.

Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

bestie read that again. NO WARRANTY. none. zero. if it breaks, that's a you problem, legally speaking. πŸ’€ (affectionately)

πŸ¦‹ SEE ALSO πŸ¦‹

iykyk, those RFCs are the blueprint. go read them if you wanna be a main character. πŸ“š


πŸ™ˆ REMARKS πŸ™ˆ

This manpage was automatically generated from the ldns source code.

so yeah, a robot wrote it, and now a girl on the internet rewrote it for you. the circle of life. 🧚


and that's the whole page, bestie! this one came from the ldns library functions manual, dated 30 May 2006, and it was auto-generated from the ldns source code. slay, go push some keys πŸ’…πŸ’–