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 β€” the key-converting girlies (manual section 3, bestie) πŸ’–

okay so this is the ldns(3) library functions manual, and today's main characters are ldns_key_buf2dsa and ldns_key_buf2rsa β€” they turn a buffer into an openssl key. no cap, that's literally the whole vibe.


✨ NAME ✨

ldns_key_buf2dsa, ldns_key_buf2rsa β€” convert buffer to openssl key


🌸 SYNOPSIS 🌸

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

#include <ldns/ldns.h>

DSA* ldns_key_buf2dsa(const ldns_buffer *key);

RSA* ldns_key_buf2rsa(const ldns_buffer *key);

like yes bestie, those are the exact includes, don't skip them, they're giving necessary πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

ldns_key_buf2dsa() converts a buffer holding key material to a DSA key in openssl.

  • key: the key to convert
  • Returns a DSA * structure with the key material

ldns_key_buf2rsa() converts a buffer holding key material to a RSA key in openssl.

  • key: the key to convert
  • Returns a RSA * structure with the key material

so yeah, two functions, both taking a const ldns_buffer * named key, both handing you back a pointer to an openssl key structure stuffed with that key material. one is DSA, one is RSA. pick your fighter, they're both slaying πŸ”₯


πŸ‘‘ AUTHOR πŸ‘‘

The ldns team at NLnet Labs.


πŸ™ˆ 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 actually file the bug report instead of just complaining in the group chat πŸ’€ the maintainers wanna hear it fr fr

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. there is NO warranty. not even the implied ones. say it with me. periodt. πŸŽ€

🌈 SEE ALSO 🌈

ldns_key_rr2ds. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.


🧚 REMARKS 🧚

This manpage was automatically generated from the ldns source code.

(yes queen, the robot wrote it, we just gave it main character energy ✨)


and that's the whole page, bestie 🫢 this was ldns(3), from the Library Functions Manual, dated 30 May 2006 β€” huge slay, iconic, no notes. go convert some keys πŸ’–