/
lib
/
python3.9
/
site-packages
/
isc
/
__pycache__
/
New Directory
Upload File
HOME
a ,i�j� � @ sX d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZG dd� de �Z dS )� )�OrderedDictNc @ sl e Zd ZdZddddddd�Zd d � Zdd� Zddd�Zdd� Zdd� Z dd� Z dd� Zdd� Zdd� Z dS )�rndczRNDC protocol client library� � � � � � )�md5Zsha1Zsha224Zsha256Zsha384Zsha512c C sb || _ |�� }|�d�r$|dd� }|| _tt|�| _t�|�| _ t �dd�| _d| _ | �� dS )z�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 encodedzhmac-� Nr i )�host�lower� startswith�algo�getattr�hashlib�hlalgo�base64� b64decode�secret�randomZrandint�ser�nonce�_rndc__connect_login)�selfr r r � r �,/usr/lib/python3.9/site-packages/isc/rndc.py�__init__'