ok
Direktori : /proc/self/root/proc/self/root/proc/thread-self/root/usr/lib/python2.7/site-packages/isc/ |
Current File : //proc/self/root/proc/self/root/proc/thread-self/root/usr/lib/python2.7/site-packages/isc/rndc.pyc |
� ���cc @ s~ d d l m 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 d l Z d e f d � � YZ d S( i����( t OrderedDictNt rndcc B s� e Z d Z i d d 6d d 6d d 6d d 6d d 6d d 6Z d � Z d � Z e d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s RNDC protocol client libraryi� t md5i� t sha1i� t sha224i� t sha256i� t sha384i� t sha512c C s� | | _ | j � } | j d � r1 | d } n | | _ t t | � | _ t j | � | _ t j d d � | _ d | _ | j � d S( s� Creates a persistent connection to RNDC and logs in host - (ip, port) tuple algo - HMAC algorithm: one of md5, sha1, sha224, sha256, sha384, sha512 (with optional prefix 'hmac-') secret - HMAC secret, base64 encodeds hmac-i i i i Ni ( t hostt lowert startswitht algot getattrt hashlibt hlalgot base64t b64decodet secrett randomt randintt sert Nonet noncet _rndc__connect_login( t selfR R R ( ( s, /usr/lib/python2.7/site-packages/isc/rndc.pyt __init__$ s c C s t | j d | � d � S( s� Call a RNDC command, all parsing is done on the server side cmd - a complete string with a command (eg 'reload zone example.com') t typet _data( t dictt _rndc__command( R t cmd( ( s, /usr/lib/python2.7/site-packages/isc/rndc.pyt call5 s c C sy t � } xi| j � D][\ } } | r: | d k r: q n | t j d t | � � | j d � 7} t | � t k r� | t j d d t | � � | j d � 7} q t | � t k r� | t j d d t | � � | 7} q t | � t k r| t j d d t | � � | 7} q t | � t k r[| j | � } | t j d d t | � � | 7} q t d t | � � � q W| S( Nt _autht Bt asciis >BIi i s# Cannot serialize element of type %s( t bytearrayt itemst structt packt lent encodeR t strt bytesR t _rndc__serialize_dictt NotImplementedError( R t datat ignore_autht rvt kt vt sd( ( s, /usr/lib/python2.7/site-packages/isc/rndc.pyt __serialize_dict; s"