관리-도구
편집 파일: RRSIG.pyc
� ��Sc @ s� d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d e j j f d � � YZ d � Z d � Z d e j j f d � � YZ d S( i����Nt BadSigTimec B s e Z d Z RS( s6 Raised when a SIG or RRSIG RR's time cannot be parsed.( t __name__t __module__t __doc__( ( ( s; /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/RRSIG.pyR s c C s� t | � d k r t � n t | d d !� } t | d d !� } t | d d !� } t | d d !� } t | d d !� } t | d d !� } t j | | | | | | d d d f � S( Ni i i i i i i ( t lenR t intt calendart timegm( t whatt yeart montht dayt hourt minutet second( ( s; /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/RRSIG.pyt sigtime_to_posixtime s c C s t j d t j | � � S( Ns %Y%m%d%H%M%S( t timet strftimet gmtime( R ( ( s; /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/RRSIG.pyt posixtime_to_sigtime) s t RRSIGc B s� e Z d Z d d d d d d d d d g Z d � 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 e d � Z d � Z RS( s~ RRSIG record @ivar type_covered: the rdata type this signature covers @type type_covered: int @ivar algorithm: the algorithm used for the sig @type algorithm: int @ivar labels: number of labels @type labels: int @ivar original_ttl: the original TTL @type original_ttl: long @ivar expiration: signature expiration time @type expiration: long @ivar inception: signature inception time @type inception: long @ivar key_tag: the key tag @type key_tag: int @ivar signer: the signer @type signer: dns.name.Name object @ivar signature: the signature @type signature: stringt type_coveredt algorithmt labelst original_ttlt expirationt inceptiont key_tagt signert signaturec C sn t t | � j | | � | | _ | | _ | | _ | | _ | | _ | | _ | | _ | | _ | | _ d S( N( t superR t __init__R R R R R R R R R ( t selft rdclasst rdtypeR R R R R R R R R ( ( s; /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/RRSIG.pyR F s c C s | j S( N( R ( R ( ( s; /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/RRSIG.pyt coversT s c K sn d t j j | j � | j | j | j t | j � t | j � | j | j j | | � t j j | j � f S( Ns %s %d %d %d %s %s %d %s %s( t dnst rdatatypet to_textR R R R R R R R R t choose_relativityt rdatat _base64ifyR ( R t origint relativizet kw( ( s; /usr/lib64/python2.7/site-packages/dns/rdtypes/ANY/RRSIG.pyR&