%PDF- %PDF-
Direktori : /usr/lib64/python2.7/site-packages/zmq/auth/ |
Current File : //usr/lib64/python2.7/site-packages/zmq/auth/base.pyo |
� +�{Wc @ s� d Z d d l Z d d l Z d d l m Z d d l m Z m Z m Z m Z d d l m Z d d l m Z d Z d Z d e f d � � YZ d d g Z d S( s* Base implementation of 0MQ authentication.i����N( t z85( t bytest unicodet bt u( t _check_versioni ( t load_certificatest *s 1.0t Authenticatorc B s� e Z d Z d d d d � Z d � Z d � Z d � Z d � Z d d d � Z d d d � Z d d d � Z d � Z d � Z d � Z d � Z d d � Z RS( s� 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. s utf-8c C s� t d d � | p t j j � | _ | | _ t | _ d | _ t � | _ t � | _ i | _ i | _ | p| t j d � | _ d S( Ni i t securitys zmq.auth( i i ( R t zmqt Contextt instancet contextt encodingt Falset allow_anyt Nonet zap_sockett sett whitelistt blacklistt passwordst certst loggingt getLoggert log( t selfR R R ( ( s3 /usr/lib64/python2.7/site-packages/zmq/auth/base.pyt __init__ s c C sH | j j t j � | _ d | j _ | j j d � | j j d � d S( s Create and bind the ZAP socketi s inproc://zeromq.zap.01t StartingN( R t socketR t REPR t lingert bindR t debug( R ( ( s3 /usr/lib64/python2.7/site-packages/zmq/auth/base.pyt start/ s c C s&