[msvc] Update csproj files
[mono.git] / mcs / class / System / System.Net / AuthenticationManager.cs
index 876418bbc6f7f61fa17f2f0ed2949971330227c6..98200b45b4a01ad613756f7d16839f978ce1e08f 100644 (file)
@@ -36,11 +36,7 @@ using System.Net.Configuration;
 
 namespace System.Net
 {
-#if MOONLIGHT
-       internal class AuthenticationManager {
-#else
        public class AuthenticationManager {
-#endif
                static ArrayList modules;
                static object locker = new object ();
 
@@ -55,11 +51,11 @@ namespace System.Net
                                        return;
                                
                                modules = new ArrayList ();
-#if NET_2_1
-                               modules.Add (new BasicClient ());
-                               modules.Add (new DigestClient ());
+#if MOBILE
                                modules.Add (new NtlmClient ());
-#elif NET_2_0 && CONFIGURATION_DEP
+                               modules.Add (new DigestClient ());
+                               modules.Add (new BasicClient ());
+#elif CONFIGURATION_DEP
                                object cfg = ConfigurationManager.GetSection ("system.net/authenticationModules");
                                AuthenticationModulesSection s = cfg as AuthenticationModulesSection;
                                if (s != null) {
@@ -110,6 +106,13 @@ namespace System.Net
                        }
                }
 
+               [MonoTODO]
+               internal static bool OSSupportsExtendedProtection {
+                       get {
+                               return false;
+                       }
+               }
+
                internal static void Clear ()
                {
                        EnsureModules ();
@@ -140,7 +143,7 @@ namespace System.Net
                                        if (auth == null)
                                                continue;
 
-                                       auth.Module = mod;
+                                       auth.ModuleAuthenticationType = mod.AuthenticationType;
                                        return auth;
                                }
                        }
@@ -163,7 +166,7 @@ namespace System.Net
                                        if (auth == null)
                                                continue;
 
-                                       auth.Module = mod;
+                                       auth.ModuleAuthenticationType = mod.AuthenticationType;
                                        return auth;
                                }
                        }