Hi Kevin,

On 28 April 2010 17:16, Kevin Chen <[email protected]> wrote:
> You need to specify the algorithm to use, so try something like:
>
> update = dns.update.Update('www.testing.heanet.ie.', keyring=keyring,
> keyalgorithm="hmac-sha1")

That works, thank you! My apologies - I should have spotted that
keyword in the API docs.

> The valid values for keyalgorithm are are "hmac-sha224", "hmac-sha256",
> "hmac-sha384", "hmac-sha512", "hmac-sha1", and "HMAC-MD5.SIG-ALG.REG.INT".
> keyalgorithm defaults to "HMAC-MD5.SIG-ALG.REG.INT" if not specified.

I see the valid SHA names are buried in the code - as a suggestion,
could they be stored as constant variables and then referenced in the
docstrings for dns.update.Update.__init__() and
dns.message.Message.use_tsig() ?

Many thanks,

-- 
Cillian
_______________________________________________
dnspython-bugs mailing list
[email protected]
http://howl.play-bow.org/mailman/listinfo.cgi/dnspython-bugs

Reply via email to