diff options
| author | Bob Halley <halley@nominum.com> | 2010-10-17 16:14:13 +0100 |
|---|---|---|
| committer | Bob Halley <halley@nominum.com> | 2010-10-17 16:14:13 +0100 |
| commit | 8e222ad86c4aea7adb4c165953852fccb5e939ba (patch) | |
| tree | bec9f15ec9fabbe7ce5cf48593a9af7508e0ad3f /dns/update.py | |
| parent | d0c486c1c4de8e30d87290c070bfe071563e3311 (diff) | |
| download | dnspython-8e222ad86c4aea7adb4c165953852fccb5e939ba.tar.gz | |
add constants for TSIG algorithms
Diffstat (limited to 'dns/update.py')
| -rw-r--r-- | dns/update.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dns/update.py b/dns/update.py index 97aea18..4c1ed62 100644 --- a/dns/update.py +++ b/dns/update.py @@ -21,6 +21,7 @@ import dns.opcode import dns.rdata import dns.rdataclass import dns.rdataset +import dns.tsig class Update(dns.message.Message): def __init__(self, zone, rdclass=dns.rdataclass.IN, keyring=None, @@ -42,7 +43,10 @@ class Update(dns.message.Message): they know the keyring contains only one key. @type keyname: dns.name.Name or string @param keyalgorithm: The TSIG algorithm to use; defaults to - dns.tsig.default_algorithm + dns.tsig.default_algorithm. Constants for TSIG algorithms are defined + in dns.tsig, and the currently implemented algorithms are + HMAC_MD5, HMAC_SHA1, HMAC_SHA224, HMAC_SHA256, HMAC_SHA384, and + HMAC_SHA512. @type keyalgorithm: string """ super(Update, self).__init__() |
