Package dns :: Module tsig
[show private | hide private]
[frames | no frames]

Module dns.tsig

DNS TSIG support.
Exceptions
BadSignature Raised if the TSIG signature fails to verify.
BadTime Raised if the current time is not within the TSIG's validity time.

Function Summary
(string, string, hmac.HMAC object) hmac_md5(wire, keyname, secret, time, fudge, original_id, error, other_data, request_mac, ctx, multi, first)
Return a (tsig_rdata, mac, ctx) tuple containing the HMAC-MD5 TSIG rdata for the input parameters, the HMAC-MD5 MAC calculated by applying the TSIG signature algorithm, and the TSIG digest context.
hmac.HMAC object validate(wire, keyname, secret, now, request_mac, tsig_start, tsig_rdata, tsig_rdlen, ctx, multi, first)
Validate the specified TSIG rdata against the other input parameters.

Function Details

hmac_md5(wire, keyname, secret, time, fudge, original_id, error, other_data, request_mac, ctx=None, multi=0, first=1)

Return a (tsig_rdata, mac, ctx) tuple containing the HMAC-MD5 TSIG rdata for the input parameters, the HMAC-MD5 MAC calculated by applying the TSIG signature algorithm, and the TSIG digest context.
Returns:
(string, string, hmac.HMAC object)
Raises:
ValueError - other_data is too long

validate(wire, keyname, secret, now, request_mac, tsig_start, tsig_rdata, tsig_rdlen, ctx=None, multi=0, first=1)

Validate the specified TSIG rdata against the other input parameters.
Returns:
hmac.HMAC object
Raises:
FormError - The TSIG is badly formed.
BadTime - There is too much time skew between the client and the server.
BadSignature - The TSIG signature did not validate

Generated by Epydoc 1.1 on Sat Jul 19 02:54:29 2003 http://epydoc.sf.net