Logo Search packages:      
Sourcecode: ldaptor version File versions

def ldaptor::protocols::ldap::ldapclient::LDAPClient::startTLS (   self,
  ctx = None 
)

Start Transport Layer Security.

It is the callers responsibility to make sure other things
are not happening at the same time.

@todo: server hostname check, see rfc2830 section 3.6.

Definition at line 214 of file ldapclient.py.

00214                                 :
        """
        Start Transport Layer Security.

        It is the callers responsibility to make sure other things
        are not happening at the same time.

        @todo: server hostname check, see rfc2830 section 3.6.

        """
        if ctx is None:
            ctx = ssl.ClientContextFactory()
        # we always delay by one event loop iteration to make
        # sure the previous handler has exited and self.onwire
        # has been cleaned up
      d=defer.Deferred()
        d.addCallback(self._startTLS)
        reactor.callLater(0, d.callback, ctx)
        return d

    def _startTLS(self, ctx):


Generated by  Doxygen 1.6.0   Back to index