ok

Mini Shell

Direktori : /proc/self/root/proc/thread-self/root/lib/python2.7/site-packages/isc/
Upload File :
Current File : //proc/self/root/proc/thread-self/root/lib/python2.7/site-packages/isc/checkds.pyc

�
���cc@s�ddlZddlZddlZddlmZmZddlmZmZdZ	dd
d��YZ
ddd�Zd�Z
d	�ZdS(i����N(tPopentPIPE(tprefixtversionsdnssec-checkdstSECRRcBsreZidd6dd6dd6dd6ZdZd	ZdZdZdZdZ	d
Z
dd�Zd�Zd
�Z
RS(sSHA-1isSHA-256itGOSTisSHA-384ittINicCsQ|st�n|jd�j�}t|�dkr?t�n|r>d|_|j�|_|dj�jd�jd�}|j�|jd�}|j�xPt|�dkr�t|�dkr�|d|dkr�|d}|d}q�W|rt�n|j�dj	|�|_
|j
d|jd|_nd|_|dj�|_|d}|dj�dkr�|dj�|_
|d}n0t|d�|_|dj�|_
|d}|dj�|jkr	td|dj�|jf��ntt|dd
!�\|_|_|_dj	|d
�j�|_dS(NtasciiitDLVit.itDSRtCHtHSis%s does not match %siR(sINRR
(t	Exceptiontdecodetsplittlentrrtypetlowertdlvnametstriptreversetjointparenttrrnametuppertrrclasstinttttltmaptkeyidtkeyalgthashalgtdigest(tselftrrtextRtfieldsRtdlv((s//usr/lib/python2.7/site-packages/isc/checkds.pyt__init__$sD			"

;
	
	


 (cCs2d|j|j|j|j|j|j|jfS(Ns%s %s %s %d %d %d %s(RRRRR R!R"(R#((s//usr/lib/python2.7/site-packages/isc/checkds.pyt__repr__OscCs|j�|j�kS(N(R((R#tother((s//usr/lib/python2.7/site-packages/isc/checkds.pyt__eq__TsN(t__name__t
__module__thashalgsRRtNoneRR R!R"RR'R(R*(((s//usr/lib/python2.7/site-packages/isc/checkds.pyRs"+	c
Cs�g}|jddd|r!dndd|r;|d|n|g}t|dt�j�\}}x*|j�D]}|jt||��qoWt|d	d
��}g}	|r	|jd|g}|r�|d|g7}n|j|�t|dt�j�\}}n�t|jdddd
d|gdt�j�\}
}|jddg}|rj|d|g7}n|j|�t|dtdt�j|
�\}}x*|j�D]}|	jt||��q�Wt	|	�dkr�dGHt
St
}x�|	D]�}||krEd|j|jj
d�|j|jtj|jfGHt}q�d|j|jj
d�|j|jtj|jfGHq�W|s�d|r�dndGHn|S(Ns+noalls+answers-tR&tdss-qR
tstdouttkeycSs|j|j|jfS(N(RR R!(trr((s//usr/lib/python2.7/site-packages/isc/checkds.pyt<lambda>gss-fs-ltdnskeyt-tstdinis$No DNSKEY records found in zone apexs,%s for KSK %s/%03d/%05d (%s) found in parents0%s for KSK %s/%03d/%05d (%s) missing from parents'No %s records were found for any DNSKEYR	R(tdigRRtcommunicatet
splitlinestappendRtsortedt	dsfromkeyRtFalseRRRR RR-R!tTrue(
tzonetargst
masterfilet	lookasidetrrlisttcmdtfpt_tlinetklisttintodstfoundR2((s//usr/lib/python2.7/site-packages/isc/checkds.pytcheck_sN 
!!
'
	cCsptjdtd�}d}tjdkr1dnd}|jddtdd	�|jd
ddd
dtdd�|jdddddtdd�|jdddddtjjt	|�d�dtdd�|jdddddtjjt	|�d�dtdd�|jdddddt
�|j�}|jj
d �|_|jrl|jj
d �|_n|S(!Ntdescriptions: checks DS coveragetbintnttsbinR?ttypethelps
zone to checks-fs--filetdestRAszone master files-ls--lookasideRBsDLV lookaside zones-ds--digR7tdefaults
path to 'dig's-Ds--dsfromkeyR<sdnssec-dsfromkeys-vs	--versiontactionRR
(targparsetArgumentParsertprogtostnametadd_argumenttstrtpathRRRt
parse_argsR?RRB(tparsertbindirtsbindirR@((s//usr/lib/python2.7/site-packages/isc/checkds.pyR]�s,
	
	cCsAt�}t|j||j|j�}t|r6dnd�dS(Nii(R]RKR?RARBtexit(R@RJ((s//usr/lib/python2.7/site-packages/isc/checkds.pytmain�s	((RURXtsyst
subprocessRRt	isc.utilsRRRWRR.RKR]Rb(((s//usr/lib/python2.7/site-packages/isc/checkds.pyt<module>sE7	 

Zerion Mini Shell 1.0