remove OpenSSL

This commit is contained in:
clowwindy
2014-11-12 23:19:02 +08:00
parent 7626d07ad8
commit b8252d11e4
5 changed files with 22 additions and 234 deletions
-16
View File
@@ -4,9 +4,6 @@ using Shadowsocks.View;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading;
using System.Windows.Forms;
@@ -14,8 +11,6 @@ namespace Shadowsocks
{
static class Program
{
[DllImport("Kernel32.dll")]
private static extern IntPtr LoadLibrary(string path);
/// <summary>
/// 应用程序的主入口点。
@@ -35,17 +30,6 @@ namespace Shadowsocks
MessageBox.Show("Shadowsocks is already running.\n\nFind Shadowsocks icon in your notify tray.");
return;
}
string tempPath = Path.GetTempPath();
string dllPath = tempPath + "/polarssl.dll";
try
{
FileManager.UncompressFile(dllPath, Resources.polarssl_dll);
}
catch (IOException e)
{
Console.WriteLine(e.ToString());
}
LoadLibrary(dllPath);
#if !DEBUG
Logging.OpenLogFile();