(self, conn, cmd_misc)
Send password credentials to client
Send password credentials to client
Send password credentials to client
def get_credentials(self, conn, cmd_misc):
        """Send password credentials to client"""

        if self.password is None:
            password = b''
        else:
            password = self.password.encode()
        if self.context:
            tls = b'True'
        else:
            tls = b'False'

        tmp = [password, self.keyfile, self.server_address[0].encode(),
               str(self.server_address[1]).encode(), tls,
               self.tls_dir]
        chain = build_message(tmp)
        try:
            sendmsg(conn, chain)
        except (OSError, TypeError) as err:
            logging.error(err.__str__())
def get_credentials ( self , conn , cmd_misc ) : if self . password is None : password = b'' else : password = self . password . encode ( ) if self . context : tls = b'True' else : tls = b'False' tmp = [ password , self . keyfile , self . server_address [ 0 ] . encode ( ) , str ( self . server_address [ 1 ] ) . encode ( ) , tls , self . tls_dir ] chain = build_message ( tmp ) try : sendmsg ( conn , chain ) except ( OSError , TypeError ) as err : logging . error ( err . __str__ ( ) )