ó
j4Vdc           @   s   d  Z  e d  Z d   Z d S(   s@   
Common authentication subroutines. Primarily for internal use.
c   	      C   sv   d d l  m } d d l m } | |  | |  } | j j | | j  } | j j | | j  } | rl | S| pu | S(   Ni˙˙˙˙(   t   env(   t   join_host_strings(	   t   fabric.stateR    t   fabric.networkR   t   sudo_passwordst   gett   sudo_passwordt	   passwordst   password(	   t   usert   hostt   portt
   login_onlyR    R   t   host_stringR   t   login_password(    (    sY   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/fabric/auth.pyt   get_password   s    c         C   sJ   d d l  m } d d l m } | |  | |  } | | _ | j | <d  S(   Ni˙˙˙˙(   R    (   R   (   R   R    R   R   R   R   (   R	   R
   R   R   R    R   R   (    (    sY   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/fabric/auth.pyt   set_password   s    N(   t   __doc__t   FalseR   R   (    (    (    sY   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/fabric/auth.pyt   <module>   s   	