Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/zmq/auth/__pycache__/base.cpython-39.pyc
Ðазад
a a�h�9 � @ st d Z ddlZddlZddlmZ ddlmZmZmZm Z ddl mZ ddlm Z dZd ZG d d� de�ZddgZdS ) z*Base implementation of 0MQ authentication.� N)�z85)�bytes�unicode�b�u)�_check_version� )�load_certificates�*s 1.0c @ s� e Zd ZdZd$dd�Zdd� Zdd � Zd d� Zdd � Zd%dd�Z d&dd�Z d'dd�Zdd� Zd(dd�Z dd� Zdd� Zdd� Zdd � Zd)d"d#�ZdS )*� Authenticatora� Implementation of ZAP authentication for zmq connections. Note: - libzmq provides four levels of security: default NULL (which the Authenticator does not see), and authenticated NULL, PLAIN, CURVE, and GSSAPI, which the Authenticator can see. - until you add policies, all incoming NULL connections are allowed. (classic ZeroMQ behavior), and all PLAIN and CURVE connections are denied. - GSSAPI requires no configuration. N�utf-8c C sb t dd� |ptj�� | _|| _d| _i | _d | _t � | _ t � | _i | _i | _ |pZt�d�| _d S )N)� r �securityFzzmq.auth)r �zmq�Context�instance�context�encoding� allow_any�credentials_providers� zap_socket�set� whitelist� blacklist� passwords�certs�logging� getLogger�log)�selfr r r � r �}/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/zmq/auth/base.py�__init__ s zAuthenticator.__init__c C s4 | j �tj�| _d| j_| j�d� | j�d� dS )zCreate and bind the ZAP socketr zinproc://zeromq.zap.01ZStartingN) r �socketr ZREPr Zlinger�bindr �debug�r r r r! �start0 s zAuthenticator.startc C s | j r| j �� d| _ dS )zClose the ZAP socketN)r �closer&