Logo Search packages:      
Sourcecode: m2crypto version File versions  Download package

def ftps_server::ftp_tls_channel::cmd_auth (   self,
  line 
)

Prepare for TLS operation.

Definition at line 214 of file ftps_server.py.

00214                             :
        """Prepare for TLS operation."""
        # XXX Handle variations.
        if line[1] != 'TLS':
            self.command_not_understood (string.join(line))
        else:
            self.respond('234 AUTH TLS successful')
            self._ssl_accepting = 1
            self.socket = SSL.Connection(self.ssl_ctx, self.socket)    
            self.socket.setup_addr(self.addr)
            self.socket.setup_ssl()
            self.socket.set_accept_state()
            self._ssl_accepted = self.socket.accept_ssl()
            if self._ssl_accepted:
                self._ssl_accepting = 0

    def cmd_pbsz(self, line):


Generated by  Doxygen 1.6.0   Back to index