static void listKey(DomainInfo const &di, DNSSECKeeper& dk, bool printHeader = true) {
if (printHeader) {
- cout<<"Zone Type Act Size Algorithm ID Location Keytag"<<endl;
- cout<<"--------------------------------------------------------------------------------------"<<endl;
+ cout<<"Zone Type Act Pub Size Algorithm ID Location Keytag"<<endl;
+ cout<<"------------------------------------------------------------------------------------------"<<endl;
}
unsigned int spacelen = 0;
for (auto const &key : dk.getKeys(di.zone)) {
else
cout<<string(30 - di.zone.toStringNoDot().length(), ' ');
- cout<<DNSSECKeeper::keyTypeToString(key.second.keyType)<<" ";
+ cout<<DNSSECKeeper::keyTypeToString(key.second.keyType)<<" ";
+
if (key.second.active) {
cout << "Act ";
} else {
cout << " ";
}
+ if (key.second.published) {
+ cout << "Pub ";
+ } else {
+ cout << " ";
+ }
+
spacelen = (std::to_string(key.first.getKey()->getBits()).length() >= 8) ? 1 : 8 - std::to_string(key.first.getKey()->getBits()).length();
if (key.first.getKey()->getBits() < 1) {
cout<<"invalid "<<endl;