관리-도구
편집 파일: TLSA.pyo
� ]�aPc @ sD d d l Z d d l Z d d l Z d e j j f d � � YZ d S( i����Nt TLSAc B s� e Z d Z d d d d g Z d � Z d e d � Z d e d � Z e e � Z d d d � Z d 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 | � j | | � | | _ | | _ | | _ | | _ d S( N( t superR t __init__R R R R ( t selft rdclasst rdtypeR R R R ( ( s: /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/TLSA.pyR $ s c K s2 d | j | j | j t j j | j d d �f S( Ns %d %d %d %st chunksizei� ( R R R t dnst rdatat _hexifyR ( R t origint relativizet kw( ( s: /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/TLSA.pyt to_text, s c C s� | j � } | j � } | j � } g } xQ | j � j � } | j � rO Pn | j � sj t j j � n | j | j � q- Wd j | � } | j d � } | | | | | | | � S( Nt t hex_codec( t get_uint8t gett unescapet is_eol_or_eoft is_identifierR t exceptiont SyntaxErrort appendt valuet joint decode( t clsR R t tokR R R R R t cert_chunkst tR ( ( s: /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/TLSA.pyt from_text3 s c C sB t j d | j | j | j � } | j | � | j | j � d S( Ns !BBB( t structt packR R R t writeR ( R t filet compressR t header( ( s: /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/TLSA.pyt to_wireE s ! c C sm t j d | | | d !� } | d 7} | d 8} | | | | !j � } | | | | d | d | d | � S( Ns !BBBi i i i ( R$ t unpackt unwrap( R R R t wiret currentt rdlenR R) R ( ( s: /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/TLSA.pyt from_wireJ s c C sy t j d | j | j | j � } t j d | j | j | j � } t | | � } | d k ru t | j | j � } n | S( Ns !BBBi ( R$ R% R R R t cmpR ( R t othert hst hot v( ( s: /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/TLSA.pyt _cmpS s !!N( t __name__t __module__t __doc__t __slots__R t Nonet TrueR R# t classmethodR* R0 R6 ( ( ( s: /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/TLSA.pyR s ( R$ t dns.rdataR t dns.rdatatypeR t RdataR ( ( ( s: /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/TLSA.pyt <module> s