ldns(3)

πŸ“¦
version 1.9.2 Β· 3 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) β€” the ldns key-reading girlies πŸ’–

Library Functions Manual Β· ldns

okay so bestie, welcome to the ldns(3) page, which is literally a whole lil' squad of functions for reading ldns_keys. it's giving "I just want to peek inside my key and know what's up" energy, and honestly? same. 🌸


✨ NAME ✨

ldns_key_list_key_count, ldns_key_list_key, ldns_key_rsa_key, ldns_key_dsa_key, ldns_key_algorithm, ldns_key_hmac_key, ldns_key_origttl, ldns_key_inception, ldns_key_expiration, ldns_key_keytag, ldns_key_pubkey_owner, ldns_key_flags β€” read ldns_keys πŸ—οΈβœ¨


πŸ¦‹ SYNOPSIS πŸ¦‹

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

#include <ldns/ldns.h>

size_t ldns_key_list_key_count(const ldns_key_list *key_list);

ldns_key* ldns_key_list_key(const ldns_key_list *key, size_t nr);

RSA* ldns_key_rsa_key(const ldns_key *k);

DSA* ldns_key_dsa_key(const ldns_key *k);

ldns_signing_algorithm ldns_key_algorithm(const ldns_key *k);

unsigned char* ldns_key_hmac_key(const ldns_key *k);

uint32_t ldns_key_origttl(const ldns_key *k);

uint32_t ldns_key_inception(const ldns_key *k);

uint32_t ldns_key_expiration(const ldns_key *k);

uint16_t ldns_key_keytag(const ldns_key *k);

ldns_rdf* ldns_key_pubkey_owner(const ldns_key *k);

uint16_t ldns_key_flags(const ldns_key *k);

🌈 DESCRIPTION 🌈

so basically this is the friend group of getters that all wanna tell you stuff about your keys. no cap, every single one of them is just "gimme the key, I'll tell you a secret about it." πŸ’…


πŸŽ€ ldns_key_list_key_count()

returns the number of keys in the key list key_list

  • key_list β€” the key_list

returns the numbers of keys in the list ✨


πŸŽ€ ldns_key_list_key()

returns a pointer to the key in the list at the given position

  • key β€” the key
  • nr β€” the position in the list

returns the key πŸ‘‘


πŸŽ€ ldns_key_rsa_key()

returns the (openssl) RSA struct contained in the key

  • k β€” the key to look in

returns the RSA * structure in the key πŸ”₯


πŸŽ€ ldns_key_dsa_key()

returns the (openssl) DSA struct contained in the key πŸ’€


πŸŽ€ ldns_key_algorithm()

return the signing alg of the key

  • k β€” the key

returns the algorithm 🧚


πŸŽ€ ldns_key_hmac_key()

return the hmac key data

  • k β€” the key

returns the hmac key data πŸ“


πŸŽ€ ldns_key_origttl()

return the original ttl of the key

  • k β€” the key

returns the original ttl ⭐


πŸŽ€ ldns_key_inception()

return the key's inception date

  • k β€” the key

returns the inception date 🌸


πŸŽ€ ldns_key_expiration()

return the key's expiration date

  • k β€” the key

returns the expiration date βŒ›


πŸŽ€ ldns_key_keytag()

return the keytag

  • k β€” the key

returns the keytag 🏷️


πŸŽ€ ldns_key_pubkey_owner()

return the public key's owner

  • k β€” the key

returns the owner πŸ’–


πŸŽ€ ldns_key_flags()

return the flag of the key

  • k β€” the key

returns the flag 🚩


πŸ‘‘ AUTHOR πŸ‘‘

The ldns team at NLnet Labs. absolute icons, fr fr. 🫢


😭 REPORTING BUGS 😭

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

not me asking you to snitch on bugs but like… respectfully, please do, bestie πŸ™ˆ

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.

the "no warranty" part is not a vibe, it's a whole legal statement β€” do not skip it, do not soften it πŸ’€

🌟 SEE ALSO 🌟

ldns_key. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. iykyk πŸ“š


🫧 REMARKS 🫧

This manpage was automatically generated from the ldns source code. yes, a robot wrote it, and yes, I gave it a glow-up. main character energy only. ✨


that's the whole page, bestie β€” written 30 May 2006 and it lives in section ldns(3) of the manual. slay, go read your keys. πŸŽ€πŸ’