From: Otto Moerbeek Date: Wed, 15 Dec 2021 13:29:59 +0000 (+0100) Subject: Apply suggestions from code review X-Git-Tag: auth-4.7.0-alpha1~67^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01498d87147700725de97a5567ff77cddd099f1f;p=thirdparty%2Fpdns.git Apply suggestions from code review Co-authored-by: Remi Gacogne --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 48f767a045..25fb93c433 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -3200,7 +3200,7 @@ try } else if (cmds.at(0) == "unset-nsec3") { if(cmds.size() < 2) { - cerr<<"Syntax: pdnsutil unset-nsec3 ZON"< duplicate,zonemdrecord + // scheme,hashalgo -> duplicate,zonemdrecord struct ZoneMDAndDuplicateFlag { std::shared_ptr record; @@ -117,10 +117,10 @@ void pdns::zonemdVerify(const DNSName& zone, ZoneParserTNG& zpt, bool& validatio // A little helper auto hash = [&sha384digest, &sha512digest](const std::string& msg) { if (sha384digest) { - sha384digest->process(msg, msg.size()); + sha384digest->process(msg); } if (sha512digest) { - sha512digest->process(msg, msg.size()); + sha512digest->process(msg); } };