summaryrefslogtreecommitdiff
path: root/src/resolve
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-07-13 00:21:50 +0200
committerTom Gundersen <teg@jklm.no>2015-07-14 01:18:51 +0200
commit1bf968f36393666f2c57953b1748e6219c027dee (patch)
tree6a24910b5bd9a0e6f042000e76285c0c7cc832b1 /src/resolve
parentff89f8b917a83a3fc0dc3ad0961c3bc953f78e8f (diff)
resolved: rr - print DNSKEY and RRSIG in base64
As mandated by RFC4034.
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/resolved-dns-rr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-rr.c b/src/resolve/resolved-dns-rr.c
index c1818eef9c..f46f8689c3 100644
--- a/src/resolve/resolved-dns-rr.c
+++ b/src/resolve/resolved-dns-rr.c
@@ -608,7 +608,7 @@ int dns_resource_record_to_string(const DnsResourceRecord *rr, char **ret) {
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)
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);
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)
return -ENOMEM;