From: Brian Wellington Date: Mon, 11 May 2020 18:27:21 +0000 (-0700) Subject: Improve validate() docs. X-Git-Tag: v2.0.0rc1~218 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e939d14ca3f6075b5fa572ac9da9d9413f1204d3;p=thirdparty%2Fdnspython.git Improve validate() docs. --- diff --git a/dns/dnssec.py b/dns/dnssec.py index 48a4a3fe..c6f818d9 100644 --- a/dns/dnssec.py +++ b/dns/dnssec.py @@ -464,8 +464,8 @@ def _validate_rrsig(rrset, rrsig, keys, origin=None, now=None): def _validate(rrset, rrsigset, keys, origin=None, now=None): - """Validate an RRset. Returns ``None`` if at least one signature - validates, or throws an exception if no signature validates. + """Validate an RRset against a signature RRset, throwing an exception + if none of the signatures validate. *rrset*, the RRset to validate. This can be a ``dns.rrset.RRset`` or a (``dns.name.Name``, ``dns.rdataset.Rdataset``)