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 β€” 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 s true if supported. (Yes, that s is 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 (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. πŸŽ€βœ¨πŸ¦‹