+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.
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;
using System.Collections;
using System.IO;
using System.Text;
+#if !TARGET_JVM
using Mono.Security.X509;
+#endif
using System.Text.RegularExpressions;
using System.Globalization;
{
if ((in_Renamed == null) || (out_Renamed == null))
{
+#if !TARGET_JVM
if(Ssl)
{
this.host = host;
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
{
/* package */
internal void startTLS()
{
-
+#if !TARGET_JVM
try
{
waitForReader(null);
throw new LdapException("The host is unknown", LdapException.CONNECT_ERROR, null, uhe);
}
return ;
+#endif
}
/*
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