Permalink
Browse files

output ZSK DNSKEY records if experimental-direct-dnskey support is en…

…abled
  • Loading branch information...
1 parent ad67d0e commit 15d6ffb728f16b4a3491fd7dfe8f383fe01cf313 @mind04 mind04 committed with mind04 Jul 15, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 pdns/pdnssec.cc
View
@@ -687,9 +687,10 @@ bool showZone(DNSSECKeeper& dk, const std::string& zone)
string algname;
algorithm2name(value.first.d_algorithm, algname);
cout<<"ID = "<<value.second.id<<" ("<<(value.second.keyOrZone ? "KSK" : "ZSK")<<"), tag = "<<value.first.getDNSKEY().getTag();
- cout<<", algo = "<<(int)value.first.d_algorithm<<", bits = "<<value.first.getKey()->getBits()<<"\tActive: "<<value.second.active<< " ( " + algname + " ) "<<endl;
+ cout<<", algo = "<<(int)value.first.d_algorithm<<", bits = "<<value.first.getKey()->getBits()<<"\tActive: "<<value.second.active<< " ( " + algname + " ) "<<endl;
+ if(value.second.keyOrZone || ::arg().mustDo("experimental-direct-dnskey"))
+ cout<<(value.second.keyOrZone ? "KSK" : "ZSK")<<" DNSKEY = "<<zone<<" IN DNSKEY "<< value.first.getDNSKEY().getZoneRepresentation() << " ; ( " + algname + " )" << endl;
if(value.second.keyOrZone) {
- cout<<"KSK DNSKEY = "<<zone<<" IN DNSKEY "<< value.first.getDNSKEY().getZoneRepresentation() << " ; ( " + algname + " )" << endl;
cout<<"DS = "<<zone<<" IN DS "<<makeDSFromDNSKey(zone, value.first.getDNSKEY(), 1).getZoneRepresentation() << " ; ( SHA1 digest )" << endl;
cout<<"DS = "<<zone<<" IN DS "<<makeDSFromDNSKey(zone, value.first.getDNSKEY(), 2).getZoneRepresentation() << " ; ( SHA256 digest )" << endl;
try {

0 comments on commit 15d6ffb

Please sign in to comment.