From 07bf35d15523262cb7785c433e80627bf9abd27f Mon Sep 17 00:00:00 2001 From: bert hubert Date: Fri, 24 May 2013 14:12:55 +0200 Subject: [PATCH] catch a lot more errors in pdnssec and report them. Fixes #588. Fixing #588. --- pdns/pdnssec.cc | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/pdns/pdnssec.cc b/pdns/pdnssec.cc index 1b7cf5e6d..78cac42f5 100644 --- a/pdns/pdnssec.cc +++ b/pdns/pdnssec.cc @@ -785,7 +785,7 @@ bool secureZone(DNSSECKeeper& dk, const std::string& zone) } for(vector::iterator i = k_algos.begin()+1; i != k_algos.end(); i++) - dk.addKey(zone, true, shorthand2algorithm(*i), k_size, true); + dk.addKey(zone, true, shorthand2algorithm(*i), k_size, true); // obvious errors will have been caught above BOOST_FOREACH(string z_algo, z_algos) { @@ -1147,13 +1147,18 @@ try bits = atoi(cmds[n].c_str()); } else { cerr<<"Unknown algorithm, key flag or size '"<