ldns(3)
π ldns β setting all the key attributes, bestie π
Okay so this is the ldns(3) manual page, and it's basically the group chat where you teach a key how to be a key. Every setter you could ever want, one beautiful list, no cap. π
πΈ NAME πΈ
ldns_key_set_algorithm, ldns_key_set_rsa_key, ldns_key_set_dsa_key, ldns_key_set_hmac_key, ldns_key_set_origttl, ldns_key_set_inception, ldns_key_set_expiration, ldns_key_set_pubkey_owner, ldns_key_set_keytag, ldns_key_set_flags, ldns_key_list_set_key_count, ldns_key_algo_supported β set ldns_key attributes
β¨ SYNOPSIS β¨
#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h>
void ldns_key_set_algorithm(ldns_key *k, ldns_signing_algorithm l);
void ldns_key_set_rsa_key(ldns_key *k, RSA *r);
void ldns_key_set_dsa_key(ldns_key *k, DSA *d);
void ldns_key_set_hmac_key(ldns_key *k, unsigned char *hmac);
void ldns_key_set_origttl(ldns_key *k, uint32_t t);
void ldns_key_set_inception(ldns_key *k, uint32_t i);
void ldns_key_set_expiration(ldns_key *k, uint32_t e);
void ldns_key_set_pubkey_owner(ldns_key *k, ldns_rdf *r);
void ldns_key_set_keytag(ldns_key *k, uint16_t tag);
void ldns_key_set_flags(ldns_key *k, uint16_t flags);
void ldns_key_list_set_key_count(ldns_key_list *key, size_t count);
int ldns_key_algo_supported(int algo);
π¦ DESCRIPTION π¦
Twelve little functions, twelve little vibes. Each one takes a key and makes it more. Let's go one by one, bestie. π
π the setters π
ldns_key_set_algorithm()β set the key's algorithm, periodt.- k: the key
- l: the algorithm
ldns_key_set_rsa_key()β set the key's rsa data.
β οΈ The rsa data should be freed by the user. That's on you, not on ldns. Don't forget, or it's giving memory leak. π
- k: the key
- r: the rsa data
ldns_key_set_dsa_key()β set the key's dsa data.
β οΈ Same energy: the dsa data should be freed by the user. Yes queen, you're responsible. π«Ά
- k: the key
- d: the dsa data
ldns_key_set_hmac_key()β set the key's hmac data.- k: the key
- hmac: the raw key data
ldns_key_set_origttl()β set the key's original ttl.- k: the key
- t: the ttl
ldns_key_set_inception()β set the key's inception date (seconds after epoch, iykyk).- k: the key
- i: the inception
ldns_key_set_expiration()β set the key's expiration date (seconds after epoch, same deal).- k: the key
- e: the expiration
ldns_key_set_pubkey_owner()β set the key's pubkey owner.- k: the key
- r: the owner
ldns_key_set_keytag()β set the key's key tag.- k: the key
- tag: the keytag
ldns_key_set_flags()β set the key's flags.- k: the key
- flags: the flags
ldns_key_list_set_key_count()β set the keylist's key count to count. Literally what it says. β¨- key: the key
- count: the count
ldns_key_algo_supported()β see if a key algorithm is supported. Vibe check for algorithms. π- algo: the signing algorithm number.
- Returns
strue if supported. (Yes, thatsis in the original, we don't make the rules π)
π AUTHOR π
The ldns team at NLnet Labs. Absolute icons, fr fr. π
π REPORTING BUGS π
Found a bug? Not the moment, but okay, tell them! Please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues. They will handle it, slay. π«Ά
π 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. Read it and weep, bestie. π
π SEE ALSO π
ldns_key_push_key, ldns_key. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. Go read, it's giving educated. π
π§ REMARKS π§
This manpage was automatically generated from the ldns source code. So if a sentence sounds like a robot wrote it... a robot wrote it. Not me though, I'm a whole person. π
π And that's the page! Brought to you by the 30 May 2006 release energy of the ldns(3) manual, straight from the ldns library functions manual. Stan a classic. πβ¨π¦
π¦ 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