File: //proc/3/root/usr/lib/python2.4/site-packages/dns/rdtypes/ANY/TLSA.pyc
mς
]έaPc @ s; d k Z d k Z d k Z d e i i f d YZ d S( Nt TLSAc 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( s* TLSA record
@ivar usage: The certificate usage
@type usage: int
@ivar selector: The selector field
@type selector: int
@ivar mtype: The 'matching type' field
@type mtype: int
@ivar cert: The 'Certificate Association Data' field
@type cert: string
@see: RFC 6698t usaget selectort mtypet certc 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 ( ( t8 /usr/lib/python2.4/site-packages/dns/rdtypes/ANY/TLSA.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_uint8R R R t cert_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_text3 s
c C sB t i d | i | i | i } | i | | i | i d S( Ns !BBB(
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 !BBBi i i i ( R% t unpackt wiret currentR' t rdlent unwrapR R# R R ( R# R R R- R. R/ R R' R ( ( R
t from_wireJ s
c C s{ t i d | i | i | i } t i d | i | i | i } t | | } | d j o t | i | i } n | S( Ns !BBBi ( R% R&