403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib/python3.11/site-packages/ansible/galaxy/collection/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib/python3.11/site-packages/ansible/galaxy/collection/__pycache__/gpg.cpython-311.pyc
�

���c���H�dZddlmZddlmZddlmZddlZddlZddl	Z	ddl
Z
ddlZddl
mZmZddlmZddlmZmZejrdd	lmZe
jdd
�dkZeefdd
ierdd
ini��ZdDd�Zd�Zd�ZeGd�de����Z eGd�de ����Z!eGd�de ����Z"eGd�de ����Z#eGd�de ����Z$eGd�de ����Z%eGd�de ����Z&eGd �d!e ����Z'eGd"�d#e ����Z(eGd$�d%e ����Z)eGd&�d'e ����Z*eGd(�d)e ����Z+eGd*�d+e ����Z,eGd,�d-e ����Z-eGd.�d/e ����Z.eGd0�d1e ����Z/eGd2�d3e ����Z0id4e!�d5e"�d6e#�d7e$�d8e%�d9e&�d:e'�d;e(�d<e)�d=e*�d>e+�d?e,�d@e-�dAe.�dBe/�dCe0�Z1dS)EzSignature verification helpers.�)�AnsibleError)�
user_agent)�open_urlN)�	dataclass�fields)�partial)�	HTTPError�URLError)�Display�)��
�frozenT�slotsc�2�|�|�d|����	t|t��dd���5}|���}ddd��n#1swxYwYn/#tt
f$r}t
d|�d|����|�d}~wwxYw|S)NzUsing signature at T�safe)�
http_agent�validate_certs�follow_redirectsz:Failed to get signature for collection verification from '�': )�vvvvrr�readr	r
r)�source�display�resp�	signature�es     �B/usr/lib/python3.11/site-packages/ansible/galaxy/collection/gpg.py�get_signature_from_sourcers�������3�6�3�3�4�4�4��
��!�|�|��#�	
�
�
�	$�
��	�	���I�
	$�	$�	$�	$�	$�	$�	$�	$�	$�	$�	$����	$�	$�	$�	$���
�x� �����W��W�W�TU�W�W�
�
��	���������
�s:�A(�A�A(�A � A(�#A �$A(�(B�9B�Bc
���tj��\}}tj�|��}dd|��ddddd|��d|g	}d	�|��}|�d
|�d���	t
j|tjtjtj|fd�
��}	|	�	|���\}
}n4#ttjf$r}td|�d|����|�d}~wwxYw	tj
|��n#tj
|��wxYw|rEtjt ��5tj|��ddd��n#1swxYwYtj|��5}
|
���}
|�d|
�d|�d|	j�d���|
|	jfcddd��S#1swxYwYdS)N�gpgz--status-fd=z--verifyz--batchz--no-ttyz--no-default-keyringz
--keyring=�-� zRunning command '�'�utf8)�stdin�stdout�stderr�pass_fds�encoding)�inputz/Failed during GnuPG verification with command 'rz	stdout: 
z

stderr: 
z
(exit code �))�os�pipe�path�exists�joinr�
subprocess�Popen�PIPE�communicate�FileNotFoundError�SubprocessErrorr�close�
contextlib�suppress�OSError�remove�fdopenr�
returncode)�
manifest_filer�keyringr�status_fd_read�status_fd_write�
remove_keybox�cmd�cmd_str�pr'r(�err�fs              r�run_gpg_verifyrI/s���')�g�i�i�#�N�O�����w�/�/�/�M�	�(��(�(������W�����
�C��h�h�s�m�m�G��L�L�+�S�+�+�+�,�,�,�"�����/��?��?�%�'��

�
�
�����Y��7�7������
�z�9�:�����O�g�O�O�#�O�O�
�
��	���������
�
���!�!�!�!�����!�!�!�!������
�
 ��
)�
)�	�	��I�g����	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�
��>�	"�	"�$�a����������Q��Q�Q�V�Q�Q�!�,�Q�Q�Q�	
�	
�	
��q�|�#�$�$�$�$�$�$�$�$�$�$�$�$����$�$�$�$�$�$sO�79C
�0D�
C;� C6�6C;�;D�D*�E)�)E-�0E-�AG�G�Gc#�K�|���D]�}|s�	|�d���\}}}n+#t$r|�d���\}}d}YnwxYw	t|}n#t$rY�gwxYw|g}|rF|�|�dt
t|����dz
����||�V���dS)Nr)�maxsplit�)�
splitlines�split�
ValueError�
GPG_ERROR_MAP�KeyError�extend�len�	dc_fields)�
status_out�line�_dummy�status�	remainder�clsrs       r�parse_gpg_errorsr[fs+�����%�%�'�'�����	��	�(,�
�
�A�
�(>�(>�%�F�F�I�I���	�	�	�!�Z�Z��Z�3�3�N�F�F��I�I�I�	����	���'�C�C���	�	�	��H�	��������	��M�M������	�#���'�'�!�+���
�
�
��c�6�l�����/�s!�8�%A �A �$
A2�2
A?�>A?c�F��eZdZUeed<edefd���Z�fd�Z�xZS)�GpgBaseErrorrX�returnc�Z�d�|j�����S)z%Return the current class description.r#)r1�__doc__rN)rZs r�get_gpg_error_descriptionz&GpgBaseError.get_gpg_error_description�s$���x�x���)�)�+�+�,�,�,�c
����t|��D]V}tt|���|j|�t
||j�������WdS�N)rT�superr]�__setattr__�name�type�getattr)�self�field�	__class__s  �r�
__post_init__zGpgBaseError.__post_init__�sf����t�_�_�	e�	e�E��,��%�%�1�1�%�*�e�j�j��QU�W\�Wa�Ib�Ib�>c�>c�d�d�d�d�	e�	erb)	�__name__�
__module__�__qualname__�str�__annotations__�classmethodrarm�
__classcell__)rls@rr]r]�sq���������K�K�K��-�#�-�-�-��[�-�e�e�e�e�e�e�e�e�erbr]c�(�eZdZUdZeed<eed<dS)�	GpgExpSigzCThe signature with the keyid is good, but the signature is expired.�keyid�usernameN�rnrorpr`rqrr�rbrrvrv�s(�������M�M��J�J�J��M�M�M�M�Mrbrvc�(�eZdZUdZeed<eed<dS)�GpgExpKeySigzSThe signature with the keyid is good, but the signature was made by an expired key.rwrxNryrzrbrr|r|�s(�������]�]��J�J�J��M�M�M�M�Mrbr|c�(�eZdZUdZeed<eed<dS)�GpgRevKeySigzRThe signature with the keyid is good, but the signature was made by a revoked key.rwrxNryrzrbrr~r~�s(�������\�\��J�J�J��M�M�M�M�Mrbr~c�(�eZdZUdZeed<eed<dS)�	GpgBadSigz8The signature with the keyid has not been verified okay.rwrxNryrzrbrr�r��s(�������B�B��J�J�J��M�M�M�M�Mrbr�c�Z�eZdZUdZeed<eed<eed<eed<eed<eed<eed<d	S)
�	GpgErrSigz�"It was not possible to check the signature.  This may be caused by
    a missing public key or an unsupported algorithm.  A RC of 4
    indicates unknown algorithm, a 9 indicates a missing public
    key.
    rw�pkalgo�hashalgo�	sig_class�time�rc�fprN�rnrorpr`rqrr�intrzrbrr�r��s[���������
�J�J�J��K�K�K��M�M�M��N�N�N�

�I�I�I��G�G�G�	�H�H�H�H�Hrbr�c��eZdZUdZeed<dS)�GpgNoPubkeyz The public key is not available.rwNryrzrbrr�r����������*�*��J�J�J�J�Jrbr�c��eZdZdZdS)�GpgMissingPassPhrasezNo passphrase was supplied.N�rnrorpr`rzrbrr�r��s������%�%�%�%rbr�c��eZdZUdZeed<dS)�GpgBadPassphrasez/The supplied passphrase was wrong or not given.rwNryrzrbrr�r��s�������9�9��J�J�J�J�Jrbr�c��eZdZUdZeed<dS)�	GpgNoData�No data has been found.  Codes for WHAT are:
    - 1 :: No armored data.
    - 2 :: Expected a packet but did not find one.
    - 3 :: Invalid packet found, this may indicate a non OpenPGP
           message.
    - 4 :: Signature expected but not found.
    �whatNryrzrbrr�r���%����������I�I�I�I�Irbr�c��eZdZUdZeed<dS)�
GpgUnexpectedr�r�Nryrzrbrr�r��r�rbr�c�6�eZdZUdZeed<eed<dZeed<dS)�GpgErrorz]This is a generic error status message, it might be followed by error location specific data.�location�code��moreN)rnrorpr`rqrrr�r�rzrbrr�r��s5�������g�g��M�M�M�

�I�I�I��D�#�N�N�N�N�Nrbr�c�(�eZdZUdZeed<eed<dS)�
GpgFailurezJThis is the counterpart to SUCCESS and used to indicate a program failure.r�r�Nr�rzrbrr�r��s(�������T�T��M�M�M�

�I�I�I�I�Irbr�c��eZdZdZdS)�GpgBadArmorzThe ASCII armor is corrupted.Nr�rzrbrr�r��s������'�'�'�'rbr�c��eZdZUdZeed<dS)�
GpgKeyExpiredzThe key has expired.�	timestampN)rnrorpr`r�rrrzrbrr�r��s����������N�N�N�N�Nrbr�c��eZdZdZdS)�
GpgKeyRevokedz+The used key has been revoked by its owner.Nr�rzrbrr�r��s������5�5�5�5rbr�c��eZdZUdZeed<dS)�GpgNoSecKeyz The secret key is not available.rwNryrzrbrr�r�r�rbr��EXPSIG�	EXPKEYSIG�	REVKEYSIG�BADSIG�ERRSIG�	NO_PUBKEY�MISSING_PASSPHRASE�BAD_PASSPHRASE�NODATA�
UNEXPECTED�ERROR�FAILURE�BADARMOR�
KEYEXPIRED�
KEYREVOKED�	NO_SECKEYrd)2r`�ansible.errorsr�ansible.galaxy.user_agentr�ansible.module_utils.urlsrr9r-r2�sys�typing�t�dataclassesrrrT�	functoolsr�urllib.errorr	r
�
TYPE_CHECKING�ansible.utils.displayr�version_info�
IS_PY310_PLUS�frozen_dataclassrrIr[�	Exceptionr]rvr|r~r�r�r�r�r�r�r�r�r�r�r�r�r�rPrzrbr�<module>r�s���&�%�'�'�'�'�'�'�0�0�0�0�0�0�.�.�.�.�.�.�����	�	�	�	�����
�
�
�
�����6�6�6�6�6�6�6�6�������,�,�,�,�,�,�,�,��?�.�-�-�-�-�-�-�� ��!��$��/�
��7�9�`�`�T�`��6^�w��o�o�\^�`�`������&4$�4$�4$�n���6�
e�
e�
e�
e�
e�9�
e�
e���
e�������������������<������������<�������������������
�
�
�
�
��
�
���
�������,������
�&�&�&�&�&�<�&�&���&�������|������
������������������L������������|�������������������(�(�(�(�(�,�(�(���(�������L������
�6�6�6�6�6�L�6�6���6�������,������
��i��������
�i�	�

�i����
��.���&��
�i���-���X���z������-���-�� ��!�
�
�
rb

Youez - 2016 - github.com/yon3zu
LinuXploit