diff --git a/shadowsocks-csharp/Encrypt/EncryptorFactory.cs b/shadowsocks-csharp/Encrypt/EncryptorFactory.cs
index dbb45d33..59111a69 100644
--- a/shadowsocks-csharp/Encrypt/EncryptorFactory.cs
+++ b/shadowsocks-csharp/Encrypt/EncryptorFactory.cs
@@ -10,7 +10,7 @@ namespace Shadowsocks.Encrypt
return new TableEncryptor(method, password);
}
- return new OpenSSLEncryptor(method, password);
+ return new PolarSSLEncryptor(method, password);
}
}
}
diff --git a/shadowsocks-csharp/Encrypt/PolarSSL.cs b/shadowsocks-csharp/Encrypt/PolarSSL.cs
index 0eab93c7..1ce44439 100755
--- a/shadowsocks-csharp/Encrypt/PolarSSL.cs
+++ b/shadowsocks-csharp/Encrypt/PolarSSL.cs
@@ -7,7 +7,7 @@ namespace Shadowsocks.Encrypt
{
public class PolarSSL
{
- const string DLLNAME = "polarssl";
+ const string DLLNAME = "libpolarssl";
public const int AES_CTX_SIZE = 8 + 4 * 68;
public const int AES_ENCRYPT = 1;
diff --git a/shadowsocks-csharp/Program.cs b/shadowsocks-csharp/Program.cs
index d730419a..df44a09e 100755
--- a/shadowsocks-csharp/Program.cs
+++ b/shadowsocks-csharp/Program.cs
@@ -45,7 +45,7 @@ namespace Shadowsocks
{
Console.WriteLine(e.ToString());
}
- LoadLibrary(dllPath);
+ //LoadLibrary(dllPath);
#if !DEBUG
Logging.OpenLogFile();
diff --git a/shadowsocks-csharp/shadowsocks-csharp.csproj b/shadowsocks-csharp/shadowsocks-csharp.csproj
index 7629f4fc..d081645c 100755
--- a/shadowsocks-csharp/shadowsocks-csharp.csproj
+++ b/shadowsocks-csharp/shadowsocks-csharp.csproj
@@ -10,7 +10,7 @@
Properties
Shadowsocks
Shadowsocks
- v2.0
+ v4.0
512
@@ -21,8 +21,7 @@
3.5
-
-
+ Client
publish\
true
Disk