Changeset 1935

Show
Ignore:
Timestamp:
01/30/11 14:12:36 (2 years ago)
Author:
ahu
Message:

make sure we don't try to print digest type 3 if we don't have GOST on board

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/pdnssec.cc

    r1927 r1935  
    257257        cout<<"DS = "<<zone<<" IN DS "<<makeDSFromDNSKey(zone, value.first.getDNSKEY(), 1).getZoneRepresentation() << endl; 
    258258        cout<<"DS = "<<zone<<" IN DS "<<makeDSFromDNSKey(zone, value.first.getDNSKEY(), 2).getZoneRepresentation() << endl; 
    259         cout<<"DS = "<<zone<<" IN DS "<<makeDSFromDNSKey(zone, value.first.getDNSKEY(), 3).getZoneRepresentation() << endl << endl; 
     259        try { 
     260          string output=makeDSFromDNSKey(zone, value.first.getDNSKEY(), 3).getZoneRepresentation(); 
     261          cout<<"DS = "<<zone<<" IN DS "<< output << endl; 
     262        } 
     263        catch(...) 
     264        { 
     265        } 
     266        cout<<endl;   
    260267      } 
    261268    }