KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache
System : Linux cs317.bluehost.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : andertr9 ( 1047)
PHP Version : 8.2.18
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/gpgme/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/gpgme/editutil.pyo
�
��POc@s�dZeZddgZddlZddlZyddlmZWn!ek
rgddl	m	ZnXddl
Z
d�Zed��Zed	e
e
ed	d
��ZdS(s�Utilities related to editing keys.

Currently only contains a utility function for editing the owner trust
value of a key in a keyring.
t	edit_signt
edit_trusti����N(tBytesIO(tStringIOcs"tj���fd��}|S(sDA decorator that lets key editor callbacks be written as generators.cs��||||��y0y�j�Wntk
rC�j�nXWntk
rYdSX�fd�}t�}z|j|||�Wd�j�XdS(Ncs�|tjtjtjtjtjtjtjtjtj	tj
tjfkrRdSy�j||f�}Wn)t
k
r�tjtjtj��nX|dk	r�tj||jd��ndS(NtASCII(tgpgmet
STATUS_EOFt
STATUS_GOT_ITtSTATUS_NEED_PASSPHRASEtSTATUS_GOOD_PASSPHRASEtSTATUS_BAD_PASSPHRASEtSTATUS_USERID_HINTtSTATUS_SIGEXPIREDtSTATUS_KEYEXPIREDtSTATUS_PROGRESStSTATUS_KEY_CREATEDtSTATUS_ALREADY_SIGNEDtsendt
StopIterationterrortERR_SOURCE_UNKNOWNtERR_GENERALtNonetostwritetencode(tstatustargstfdtdata(tgen(s4/usr/lib64/python2.7/site-packages/gpgme/editutil.pyt
edit_callback4s$	
(t__next__tAttributeErrortnextRRtedittclose(tctxtkeyRtkwargsRtoutput(tfunction(Rs4/usr/lib64/python2.7/site-packages/gpgme/editutil.pytwrapper's

	(t	functoolstwraps(R)R*((R)s4/usr/lib64/python2.7/site-packages/gpgme/editutil.pyt
key_editor%s(ccs�|tjtjtjtjtjfkr=td|��ndV\}}dV\}}d|V\}}|dkr�dV\}}ndV\}}dV\}}dS(s&Edit the trust level of the given key.sBad trust value %dstrust
s%d
s!edit_ownertrust.set_ultimate.okaysY
squit
N(RtVALIDITY_UNDEFINEDtVALIDITY_NEVERtVALIDITY_MARGINALt
VALIDITY_FULLtVALIDITY_ULTIMATEt
ValueErrorR(R%R&ttrustRR((s4/usr/lib64/python2.7/site-packages/gpgme/editutil.pyRRs	


ic
cst|dks!|t|j�kr0td��nd}|rId|}n|r\d|}n|dkrwtd	��ndV\}}	d
|V\}}	d|V\}}	x�|	dkrU|	d
kr�dV\}}	q�|	dkr�d|r�dndV\}}	q�|	dkrd|V\}}	q�|	dkr9dV\}}	q�td||	ff��q�WdV\}}	dV\}}	dS(s$Sign the given key.

    index:    the index of the user ID to sign, starting at 1.  Sign all
               user IDs if set to 0.
    local:    make a local signature
    norevoke: make a non-revokable signature
    command:  the type of signature.  One of sign, lsign, tsign or nrsign.
    expire:   whether the signature should expire with the key.
    check:    Amount of checking performed.  One of:
                 0 - no answer
                 1 - no checking
                 2 - casual checking
                 3 - careful checking
    isuser ID index out of rangetsignsl%ssnr%siiischeck must be one of 0, 1, 2, 3suid %d
s%s
skeyedit.promptskeyedit.sign_all.okaysY
ssign_uid.expiretYtNssign_uid.classs%d
s
sign_uid.okaysUnexpected state %rsquit
N(iiii(tlentuidsR3RtAssertionError(
R%R&tindextlocaltnorevoketexpiretchecktcommandRR((s4/usr/lib64/python2.7/site-packages/gpgme/editutil.pyRns0!


 
(t__doc__ttypet
__metaclass__t__all__R+RtioRtImportErrorRRR-RtFalsetTrueR(((s4/usr/lib64/python2.7/site-packages/gpgme/editutil.pyt<module>s
	-	

Anon7 - 2021