From: Fred Morcos Date: Wed, 16 Feb 2022 08:43:48 +0000 (+0100) Subject: Whitespace X-Git-Tag: rec-4.7.0-beta1~51^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a3b143fce21c467c53ed272e81b7f8c90c47e4c;p=thirdparty%2Fpdns.git Whitespace --- diff --git a/docs/manpages/pdnsutil.1.rst b/docs/manpages/pdnsutil.1.rst index 81c6dffaad..40ef13e87a 100644 --- a/docs/manpages/pdnsutil.1.rst +++ b/docs/manpages/pdnsutil.1.rst @@ -160,8 +160,8 @@ ZONE MANIPULATION COMMANDS -------------------------- add-record *ZONE* *NAME* *TYPE* [*TTL*] *CONTENT* - Add one or more records of *NAME* and *TYPE* to *ZONE* with *CONTENT* - and optional *TTL*. If *TTL* is not set, default will be used. + Add one or more records of *NAME* and *TYPE* to *ZONE* with *CONTENT* + and optional *TTL*. If *TTL* is not set, default will be used. add-autoprimary *IP* *NAMESERVER* [*ACCOUNT*] Add a autoprimary entry into the backend. This enables receiving zone updates from other servers. remove-autoprimary *IP* *NAMESERVER* @@ -253,9 +253,9 @@ test-schema *ZONE* Test database schema, this creates the zone *ZONE* unset-presigned *ZONE* Disables presigned operation for *ZONE*. -raw-lua-from-content *TYPE* *CONTENT* +raw-lua-from-content *TYPE* *CONTENT* Display record contents in a form suitable for dnsdist's `SpoofRawAction`. -zonemd-verify-file *ZONE* *FILE* +zonemd-verify-file *ZONE* *FILE* Validate ZONEMD for *ZONE* read from *FILE*. DEBUGGING TOOLS diff --git a/pdns/dnssecinfra.hh b/pdns/dnssecinfra.hh index dcd6ff7173..488762deaa 100644 --- a/pdns/dnssecinfra.hh +++ b/pdns/dnssecinfra.hh @@ -37,7 +37,7 @@ class DNSCryptoKeyEngine explicit DNSCryptoKeyEngine(unsigned int algorithm) : d_algorithm(algorithm) {} virtual ~DNSCryptoKeyEngine() {}; virtual string getName() const = 0; - + typedef std::map stormap_t; typedef std::vector > storvector_t; virtual void create(unsigned int bits)=0; @@ -50,7 +50,7 @@ class DNSCryptoKeyEngine return msg; } virtual bool verify(const std::string& msg, const std::string& signature) const =0; - + virtual std::string getPubKeyHash()const =0; virtual std::string getPublicKeyString()const =0; virtual int getBits() const =0; @@ -58,7 +58,7 @@ class DNSCryptoKeyEngine { return d_algorithm; } - + virtual void fromISCMap(DNSKEYRecordContent& drc, stormap_t& stormap)=0; virtual void fromPEMString(DNSKEYRecordContent& drc, const std::string& raw) { @@ -76,16 +76,16 @@ class DNSCryptoKeyEngine static std::unique_ptr make(unsigned int algorithm); static bool isAlgorithmSupported(unsigned int algo); static bool isDigestSupported(uint8_t digest); - + typedef std::unique_ptr maker_t(unsigned int algorithm); - + static void report(unsigned int algorithm, maker_t* maker, bool fallback=false); static void testMakers(unsigned int algorithm, maker_t* creator, maker_t* signer, maker_t* verifier); static vector> listAllAlgosWithBackend(); static bool testAll(); static bool testOne(int algo); private: - + typedef std::map makers_t; typedef std::map > allmakers_t; static makers_t& getMakers() @@ -108,12 +108,12 @@ struct DNSSECPrivateKey { return getDNSKEY().getTag(); } - + const std::shared_ptr& getKey() const { return d_key; } - + void setKey(std::shared_ptr& key) { d_key = key; @@ -144,10 +144,10 @@ struct CanonicalCompare stringtok(avect, a, "."); stringtok(bvect, b, "."); - + reverse(avect.begin(), avect.end()); reverse(bvect.begin(), bvect.end()); - + return avect < bvect; } }; @@ -164,7 +164,7 @@ string getMessageForRRSET(const DNSName& qname, const RRSIGRecordContent& rrc, c DSRecordContent makeDSFromDNSKey(const DNSName& qname, const DNSKEYRecordContent& drc, uint8_t digest); -class DNSSECKeeper; +class DNSSECKeeper; uint32_t getStartOfWeek();