Exemplo n.º 1
0
        public void ReadConfig(out NegotiateServerConfig c)
        {
            config = new NegotiateServerConfig
            {
                MaxSmbVersionSupported = testConfig.MaxSmbVersionSupported < DialectRevision.Smb311? testConfig.MaxSmbVersionSupported : DialectRevision.Smb302,
            };

            c = config;
        }
        public void ReadConfig(out NegotiateServerConfig c)
        {
            config = new NegotiateServerConfig
            {
                MaxSmbVersionSupported = testConfig.MaxSmbVersionSupported < DialectRevision.Smb311? testConfig.MaxSmbVersionSupported : DialectRevision.Smb302,
            };

            c = config;
        }
 public static void ReadConfigReturn(NegotiateServerConfig c)
 {
     Condition.IsNotNull(c);
     Condition.IsTrue(c.MaxSmbVersionSupported == DialectRevision.Smb2002 ||
                      c.MaxSmbVersionSupported == DialectRevision.Smb21 ||
                      c.MaxSmbVersionSupported == DialectRevision.Smb30 ||
                      c.MaxSmbVersionSupported == DialectRevision.Smb302);
     Config = c;
     State = ModelState.Initialized;
 }