public void AddStreamFeatures(ServerConnectionHandler serverSession, StreamFeatures features)
 {
     if (serverSession.SessionState < SessionState.Binded)
     {
         features.Add(new Bind());
     }
 }
Exemple #2
0
 public void AddStreamFeatures(ServerConnectionHandler serverSession, StreamFeatures features)
 {
     ServerSession = serverSession;
     if (serverSession.SessionState < Matrix.SessionState.Secure)
     {
         features.Add(new StartTls());
     }
 }
        public void AddStreamFeatures(ServerConnectionHandler serverSession, StreamFeatures features)
        {
            if (serverSession.SessionState < Matrix.SessionState.Authenticated)
            {
                if (features.Mechanisms == null)
                {
                    features.Mechanisms = new Mechanisms();
                }

                features.Mechanisms.AddMechanism(SaslMechanism.Plain);
            }
        }