| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.7/site-packages/isc/__pycache__/ |
Upload File : |
B
��e]j � @ s� d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl
mZ dZd dl
mZmZmZmZmZmZ dd� Zddd �Zd
d� Zdd
� ZdS )� )�print_functionN)�defaultdictz
dnssec-keymgr)�dnskey�keydict� keyseries�policy�parsetab�utilsc O s t | |� t�d� d S )N� )�print�sys�exit)�args�kwargs� r �/usr/lib/python3.7/keymgr.py�fatal s
r c C s� |}|r"t j�|�r"t �|t j�s|t jd }|s8t jj}xB|�t j�D ]2}|t j | }t j�|�rtt �|t j�rtP d}qFW |S )a2 find the location of a specified command. If a default is supplied,
exists and it's an executable, we use it; otherwise we search PATH
for an alternative.
:param command: command to look for
:param default: default value to use
:return: PATH with the location of a suitable binary
�PATHN)
�os�path�isfile�access�X_OK�environ�defpath�split�pathsep�sep)Zcommand�defaultZfpathr Z directoryr r r �set_path s
r c C s� t dtj�t�d�d��} t dtj�t�d�d��}tjtd d�}|j dt
ddd d
� |j ddt
d
dd� |j ddt
ddd� |j dd| t
ddd� |j ddt
dddd� |j dd|t
ddd� |j dd d!d"d#d$� |j d%d&d!d"d'd$� |j d(d)d*d!d"d+d$� |j d,d-d.d!d"d/d$� |j d0d1d2tjd3� |�� }|j
�rJ|j�rJtd4� |jdk�r^td5� |jdk�rrtd6� |jdk �r�tj�|j��s�td7|j � n(tj�tjd8�|_tj�|j��s�d|_|S )9zc Read command line arguments, returns 'args' object
:return: args object properly prepared
z
dnssec-keygenZsbinzdnssec-settimezA: schedule DNSSEC key rollovers according to a pre-defined policy)�description�zone�*NzSZone(s) to which the policy should be applied (default: all zones in the directory))�type�nargsr �helpz-Kr zDirectory containing keys�dir)�destr# r% �metavarz-c�
policyfilezPolicy definition file�filez-g�keygenzPath to 'dnssec-keygen')r'