File: //proc/3/root/usr/lib/python2.4/site-packages/dns/rdtypes/dsbase.pyc
mς
!`Nc @ s; d k Z d k Z d k Z d e i i f d YZ d S( Nt DSBasec B s t Z d Z d d d d g Z d Z e e d Z e e d Z e e Z e e d Z
e d Z e e Z d
Z RS( sJ Base class for rdata that is like a DS record
@ivar key_tag: the key tag
@type key_tag: int
@ivar algorithm: the algorithm
@type algorithm: int
@ivar digest_type: the digest type
@type digest_type: int
@ivar digest: the digest
@type digest: int
@see: draft-ietf-dnsext-delegation-signer-14.txtt key_tagt algorithmt digest_typet digestc C sA t t | i | | | | _ | | _ | | _ | | _ d S( N(
t superR t selft __init__t rdclasst rdtypeR R R R ( R R R R R R R ( ( t6 /usr/lib/python2.4/site-packages/dns/rdtypes/dsbase.pyR $ s
c K s2 d | i | i | i t i i | i d d f S( Ns %d %d %d %st chunksizei ( R R R R t dnst rdatat _hexifyR ( R t origint
relativizet kw( ( R
t to_text, s $c C sΊ | i } | i } | i }
g } xV | i i } | i
o Pn | i p t i
i n | i | i q- Wd i | } | i d } | | | | | |
| S( Ni t t hex_codec( t tokt
get_uint16R t get_uint8R R t chunkst gett unescapet tt
is_eol_or_eoft
is_identifierR t exceptiont SyntaxErrort appendt valuet joinR t decodet clsR R ( R$ R R R R R R R R R R R ( ( R
t from_text2 s
c C sB t i d | i | i | i } | i | | i | i d S( Ns !HBB(
t structt packR R R R t headert filet writeR ( R R) t compressR R( ( ( R
t to_wireE s
c C sm t i d | | | d ! } | d 7} | d 8} | | | | !i } | | | | d | d | d | S( Ns !HBBi i i i ( R&