
    oh~                     2    d dl Zd dlZdZd Z G d d      Zy)    Nz\\.\pipe\openssh-ssh-agentc                      t         j                  j                  t              \  } j	                         t        fdt        j                  |       D              S )Nc              3   D   K   | ]  }|j                         k(    y wN)lower).0nnames     f/var/www/pru.catia.catastroantioquia-mas.com/tasa/lib/python3.12/site-packages/paramiko/win_openssh.py	<genexpr>z$can_talk_to_agent.<locals>.<genexpr>    s     ;Qtqwwy ;s    )ospathsplit	PIPE_NAMEr   anylistdir)dir_r	   s    @r
   can_talk_to_agentr      s@     y)JD$::<D;"**T*:;;;    c                   $    e Zd Zd Zd Zd Zd Zy)OpenSSHAgentConnectionc                     	 	 t        j                  t        t         j                  t         j                  z        | _        y # t        $ r}|j                  dk7  r Y d }~nd }~ww xY wt        j                  d       |)N   g?)
r   openr   O_RDWRO_BINARY_pipeOSErrorerrnotimesleep)selfes     r
   __init__zOpenSSHAgentConnection.__init__$   sg    WWY		BKK0GH
    77b= ! JJsO s   >A 	A%A  A%c                 B    t        j                  | j                  |      S r   )r   writer   )r!   datas     r
   sendzOpenSSHAgentConnection.send1   s    xx

D))r   c                 B    t        j                  | j                  |      S r   )r   readr   )r!   r   s     r
   recvzOpenSSHAgentConnection.recv4   s    wwtzz1%%r   c                 @    t        j                  | j                        S r   )r   closer   )r!   s    r
   r,   zOpenSSHAgentConnection.close7   s    xx

##r   N)__name__
__module____qualname__r#   r'   r*   r,    r   r
   r   r   #   s    *&$r   r   )os.pathr   r   r   r   r   r0   r   r
   <module>r2      s!   (  )	<$ $r   