ldns(3)
π 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 keynrβ 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 π
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. ππ
π¦ where this page comes from
- alpine 3.22: ldns-doc 1.8.4-r0 Β· BSD-3-Clause
- alpine 3.23: ldns-doc 1.8.4-r1 Β· BSD-3-Clause
- alpine 3.24: ldns-doc 1.8.4-r1 Β· BSD-3-Clause
- arch rolling: ldns 1.9.2-1 Β· custom:BSD
- debian trixie: libldns-dev 1.8.4-2+b1
- fedora 43: ldns-devel 1.8.4-8.fc43 Β· BSD-3-Clause
- fedora 43: ldns-devel 1.8.4-8.fc43 Β· BSD-3-Clause
- fedora 43: ldns-devel 1.9.2-1.fc43 Β· BSD-3-Clause
- fedora 43: ldns-devel 1.9.2-1.fc43 Β· BSD-3-Clause
- fedora 44: ldns-devel 1.9.0-2.fc44 Β· BSD-3-Clause
- fedora 44: ldns-devel 1.9.0-2.fc44 Β· BSD-3-Clause
- fedora 44: ldns-devel 1.9.2-1.fc44 Β· BSD-3-Clause
- fedora 44: ldns-devel 1.9.2-1.fc44 Β· BSD-3-Clause
- nixos 26.05: ldns 1.9.2
- nixpkgs unstable: ldns 1.9.2
- opensuse-leap 16.0: ldns-devel 1.8.4-160000.3.1 Β· BSD-3-Clause
- opensuse-leap 16.0: ldns-devel 1.8.4-160000.3.1 Β· BSD-3-Clause
- opensuse-leap 16.0: ldns-devel 1.8.4-160000.3.1 Β· BSD-3-Clause
- opensuse-leap 16.0: ldns-devel 1.8.4-160000.3.1 Β· BSD-3-Clause
- ubuntu questing: libldns-dev 1.8.4-2build1
- ubuntu resolute: libldns-dev 1.8.4-2build3
- ubuntu stonking: libldns-dev 1.9.2-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms