Added ifdef to exclude the code not used in TARGET_JVM.
authorBoris Kirzner <borisk@mono-cvs.ximian.com>
Mon, 20 Jun 2005 07:52:54 +0000 (07:52 -0000)
committerBoris Kirzner <borisk@mono-cvs.ximian.com>
Mon, 20 Jun 2005 07:52:54 +0000 (07:52 -0000)
svn path=/trunk/mcs/; revision=46232

mcs/class/Novell.Directory.Ldap/ChangeLog
mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap/AssemblyInfo.cs
mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap/Connection.cs
mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap/LdapConnection.cs

index 4ebf19360b6d9830fed6598591a36520343465d1..ba0d30d019cf21128b1eee282773eab455315e64 100644 (file)
@@ -1,3 +1,9 @@
+2005-19-06  Boris Kirzner <borisk@mainsoft.com>
+       * Novell.Directory.Ldap/AssemblyInfo.cs, 
+       Novell.Directory.Ldap/Connection.cs, 
+       Novell.Directory.Ldap/LdapConnection.cs: 
+       added ifdef to exclude the code not used in TARGET_JVM.
+
 2005-04-05  Boris Kirzner <borisk@mainsoft.com>
        * Added Novell.Directory.Ldap.Rfc2251/RfcLdapSuperDN.cs to sources.
 
index e85dea0e6d7c6819eb47d6ca21f67c4b35ebd10b..f96aa01595d9d57228e1578420ce56875c101a45 100755 (executable)
@@ -69,6 +69,8 @@ using System.Runtime.InteropServices;
        [assembly: AssemblyVersion ("1.0.3300.0")]
 #endif
 
+#if (!TARGET_JVM)
 [assembly: AssemblyDelaySign (true)]
 [assembly: AssemblyKeyFile ("../mono.pub")]
+#endif
 
index 98d3816cd9ab73985353f1b50c045d5702c7924f..99b1fed6a64d0f66faa69c73a1df6e58c622c859 100755 (executable)
@@ -34,8 +34,10 @@ using System.Threading;
 using Novell.Directory.Ldap.Asn1;
 using Novell.Directory.Ldap.Rfc2251;
 using Novell.Directory.Ldap.Utilclass;
+#if !TARGET_JVM
 using Mono.Security.Protocol.Tls;
 using Mono.Security.X509.Extensions;
+#endif
 using Syscert = System.Security.Cryptography.X509Certificates;
 using System.Security.Cryptography;
 using System.Net;
@@ -43,7 +45,9 @@ using System.Net.Sockets;
 using System.Collections;
 using System.IO;
 using System.Text;
+#if !TARGET_JVM
 using Mono.Security.X509;
+#endif
 using System.Text.RegularExpressions;
 using System.Globalization;
 
@@ -682,6 +686,7 @@ namespace Novell.Directory.Ldap
                        {
                                if ((in_Renamed == null) || (out_Renamed == null))
                                {
+#if !TARGET_JVM
                                        if(Ssl)
                                        {
                                                this.host = host;
@@ -704,10 +709,13 @@ namespace Novell.Directory.Ldap
                                                out_Renamed = (System.IO.Stream) sslstream;
                                        }
                                        else{
+#endif
                                                socket = new System.Net.Sockets.TcpClient(host, port);                          
                                                in_Renamed = (System.IO.Stream) socket.GetStream();
                                                out_Renamed = (System.IO.Stream) socket.GetStream();
+#if !TARGET_JVM
                                        }
+#endif
                                }
                                else
                                {
@@ -1113,7 +1121,7 @@ namespace Novell.Directory.Ldap
                /* package */
                internal void  startTLS()
                {
-                       
+#if !TARGET_JVM                        
                        try
                        {
                                waitForReader(null);
@@ -1145,6 +1153,7 @@ namespace Novell.Directory.Ldap
                                throw new LdapException("The host is unknown", LdapException.CONNECT_ERROR, null, uhe);
                        }
                        return ;
+#endif
                }
                
                /*
index 973516b0d45872c11673de70252572ed0ac06a96..2d6b656e9f7f82c26bb5e9fa8b29bf20791091b2 100755 (executable)
@@ -34,7 +34,9 @@ using Novell.Directory.Ldap;
 using Novell.Directory.Ldap.Asn1;
 using Novell.Directory.Ldap.Rfc2251;
 using Novell.Directory.Ldap.Utilclass;
+#if !TARGET_JVM
 using Mono.Security.Protocol.Tls;
+#endif
 using System.Security.Cryptography.X509Certificates;
 
 namespace Novell.Directory.Ldap