Changeset 1777
- Timestamp:
- 12/30/10 22:45:44 (2 years ago)
- Location:
- trunk/pdns/pdns
- Files:
-
- 3 modified
-
dnsseckeeper.hh (modified) (1 diff)
-
fsdnsseckeeper.cc (modified) (3 diffs)
-
pdnssec.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/dnsseckeeper.hh
r1773 r1777 68 68 69 69 void create(unsigned int bits); 70 std::string convertToISC( );70 std::string convertToISC(unsigned int algorithm); 71 71 72 72 private: -
trunk/pdns/pdns/fsdnsseckeeper.cc
r1773 r1777 32 32 } 33 33 34 std::string RSAContext::convertToISC( )34 std::string RSAContext::convertToISC(unsigned int algorithm) 35 35 { 36 36 string ret; … … 45 45 ("Coefficient",&d_context.QP); 46 46 47 ret = "Private-key-format: v1.2\nAlgorithm: 5(RSASHA1)\n";47 ret = "Private-key-format: v1.2\nAlgorithm: "+lexical_cast<string>(algorithm)+" (RSASHA1)\n"; 48 48 49 49 BOOST_FOREACH(outputs_t::value_type value, outputs) { … … 121 121 dpk.d_key.create(bits); // for testing, 1024 122 122 123 string isc = dpk.d_key.convertToISC( );123 string isc = dpk.d_key.convertToISC(algorithm); 124 124 DNSKEYRecordContent drc = dpk.getDNSKEY(); 125 125 drc.d_flags = 256 + keyOrZone; // KSK -
trunk/pdns/pdns/pdnssec.cc
r1773 r1777 325 325 unsigned int id=atoi(cmds[2].c_str()); 326 326 DNSSECPrivateKey dpk=dk.getKeyById(zone, id); 327 cout << dpk.d_key.convertToISC( ) <<endl;327 cout << dpk.d_key.convertToISC(dpk.d_algorithm) <<endl; 328 328 } 329 329 else if(cmds[0]=="export-zone-dnskey") {