File: //proc/3/root/usr/lib/python2.4/site-packages/dns/rdtypes/ANY/HIP.pyc
mò
!`Nc @ sV d k Z d k Z d k Z d k Z d k Z d k Z d e i i f d „ ƒ YZ d S( Nt HIPc 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 e e d
„ Z d „ Z
RS( s= HIP record
@ivar hit: the host identity tag
@type hit: string
@ivar algorithm: the public key cryptographic algorithm
@type algorithm: int
@ivar key: the public key
@type key: string
@ivar servers: the rendezvous servers
@type servers: list of dns.name.Name objects
@see: RFC 5205t hitt algorithmt keyt serversc 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 ( ( t7 /usr/lib/python2.4/site-packages/dns/rdtypes/ANY/HIP.pyR ' s
c K s´ | i i d ƒ } | i i d ƒ i d d ƒ } d } g } x0 | i D]% } | i t | i
| | ƒ ƒ ƒ qF Wt
| ƒ d j o | d d i | ƒ 7} n d | i | | | f S( Ns hex-codecs base64-codecs
t i t s
%u %s %s%s( R R t encodeR t replacet textR t servert appendt strt choose_relativityt origint
relativizet lent joinR ( R R R t kwR R R R R ( ( R
t to_text. s
#c C sÙ | i ƒ } | i ƒ i d ƒ }
t |
ƒ d j o t i i d ƒ ‚ n | i ƒ i d ƒ } g } xX | i ƒ } | i ƒ o Pn t i i | i | ƒ } | i | | ƒ | i | ƒ qh W| | | |
| | | ƒ S( Ns hex-codeciÿ s HIT too longs base64-codeci ( t tokt get_uint8R t
get_stringt decodeR R t dnst exceptiont SyntaxErrorR R t gett tokent
is_eol_or_eoft namet from_textt valueR R R R R t clsR R ( R' R R R R R R R R R"