%PDF- %PDF-
Direktori : /lib/python3/dist-packages/jeepney/__pycache__/ |
Current File : //lib/python3/dist-packages/jeepney/__pycache__/auth.cpython-312.pyc |
� +�cE � � � d dl mZ d dlmZ d dlZd dlmZ defd�Zdefd�Z dZ d Z G d � de� Z G d� d e � Z G d� de� Z G d� d� ZeZy)� )�hexlify)�EnumN)�Optional�returnc �v � t t t j � � j d� � } d| z S )z�Prepare an AUTH command line with the current effective user ID. This is the preferred authentication method for typical D-Bus connections over a Unix domain socket. �asciis AUTH EXTERNAL %b )r �str�os�geteuid�encode)�hex_uids �./usr/lib/python3/dist-packages/jeepney/auth.py�make_auth_externalr s/ � � �c�"�*�*�,�'�.�.�w�7�8�G�"�W�,�,� c �R � ddl m} t d| z j d� � }d|z S )z�Format an AUTH command line for the ANONYMOUS mechanism Jeepney's higher-level wrappers don't currently use this mechanism, but third-party code may choose to. See <https://tools.ietf.org/html/rfc4505> for details. � )�__version__z Jeepney %sr s AUTH ANONYMOUS %s )� r r r )r �traces r �make_auth_anonymousr s, � � ��\�K�/�7�7��@�A�E�#�e�+�+r s BEGIN s NEGOTIATE_UNIX_FD c � � e Zd ZdZdZdZdZdZy)�ClientStater � � � � N)�__name__� __module__�__qualname__�WaitingForData�WaitingForOk�WaitingForReject�WaitingForAgreeUnixFD�Success� r r r r s � ��N��L������Gr r c � � e Zd ZdZdd�Zd� Zy)�AuthenticationErrorz%Raised when DBus authentication failsc � � || _ || _ y �N��msg�data)�selfr, r+ s r �__init__zAuthenticationError.__init__( s � ������ r c �8 � | j � d| j ��S )Nz. Bus sent: r* �r- s r �__str__zAuthenticationError.__str__, s � ��(�(��<�� � �}�5�5r N)zAuthentication failed)r r r �__doc__r. r1 r% r r r'