%PDF- %PDF-
Direktori : /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/ |
Current File : //opt/plesk/python/2.7/lib/python2.7/site-packages/dns/tsigkeyring.pyc |
� �ac @ sJ d Z d d l m Z m Z d d l Z d d l Z d � Z d � Z d S( s A place to store TSIG keys.i����( t maybe_decodet maybe_encodeNc C sP i } xC | D]; } t j j | � } t j t | | � � } | | | <q W| S( s� Convert a dictionary containing (textual DNS name, base64 secret) pairs into a binary keyring which has (dns.name.Name, binary secret) pairs. @rtype: dict( t dnst namet from_textt base64t decodestringR ( t textringt keyringt keytextt keynamet secret( ( sD /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/tsigkeyring.pyR s c C sP i } xC | D]; } t | j � � } t t j | | � � } | | | <q W| S( s� Convert a dictionary containing (dns.name.Name, binary secret) pairs into a text keyring which has (textual DNS name, base64 secret) pairs. @rtype: dict( R t to_textR t encodestring( R R R R R ( ( sD /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/tsigkeyring.pyR ( s ( t __doc__t dns._compatR R R t dns.nameR R R ( ( ( sD /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/tsigkeyring.pyt <module> s