File: //lib/python2.7/site-packages/dns/tsigkeyring.pyo
�
�b�Wc @ 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( ( s3 /usr/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 ( ( s3 /usr/lib/python2.7/site-packages/dns/tsigkeyring.pyR &