'Handle server reply if TLS is allowed to process. Behaves accordingly.
Used internally.'

def StartTLSHandler(self, conn, starttls):

    if (starttls.getNamespace() != NS_TLS):
        return
    self.starttls = starttls.getName()
    if (self.starttls == 'failure'):
        self.DEBUG(('Got    starttls    response:    ' + self.starttls), 'error')
        return
    self.DEBUG('Got    starttls    proceed    response.    Switching    to    TLS/SSL...', 'ok')
    self._startSSL()
    self._owner.Dispatcher.PlugOut()
    dispatcher.Dispatcher().PlugIn(self._owner)
