resolved: rr - print DNSKEY and RRSIG in base64
As mandated by RFC4034.
This commit is contained in:
parent
ff89f8b917
commit
1bf968f363
1
TODO
1
TODO
|
@ -342,7 +342,6 @@ Features:
|
||||||
- put networkd events and rtnl events at a higher priority, so that
|
- put networkd events and rtnl events at a higher priority, so that
|
||||||
we always process them before we process client requests
|
we always process them before we process client requests
|
||||||
- DNSSEC
|
- DNSSEC
|
||||||
- use base64 for key presentation?
|
|
||||||
- add display of private key types (http://tools.ietf.org/html/rfc4034#appendix-A.1.1)?
|
- add display of private key types (http://tools.ietf.org/html/rfc4034#appendix-A.1.1)?
|
||||||
- add nice formatting of DNS timestamps
|
- add nice formatting of DNS timestamps
|
||||||
- DNS
|
- DNS
|
||||||
|
|
|
@ -608,7 +608,7 @@ int dns_resource_record_to_string(const DnsResourceRecord *rr, char **ret) {
|
||||||
|
|
||||||
alg = dnssec_algorithm_to_string(rr->dnskey.algorithm);
|
alg = dnssec_algorithm_to_string(rr->dnskey.algorithm);
|
||||||
|
|
||||||
t = hexmem(rr->dnskey.key, rr->dnskey.key_size);
|
t = base64mem(rr->dnskey.key, rr->dnskey.key_size);
|
||||||
if (!t)
|
if (!t)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
@ -629,7 +629,7 @@ int dns_resource_record_to_string(const DnsResourceRecord *rr, char **ret) {
|
||||||
type = dns_type_to_string(rr->rrsig.type_covered);
|
type = dns_type_to_string(rr->rrsig.type_covered);
|
||||||
alg = dnssec_algorithm_to_string(rr->rrsig.algorithm);
|
alg = dnssec_algorithm_to_string(rr->rrsig.algorithm);
|
||||||
|
|
||||||
t = hexmem(rr->rrsig.signature, rr->rrsig.signature_size);
|
t = base64mem(rr->rrsig.signature, rr->rrsig.signature_size);
|
||||||
if (!t)
|
if (!t)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue