Loweynet
修訂 | ed4d179277181fc0bcd49f52d74b36d9a5e58128 (tree) |
---|---|
時間 | 2017-11-11 19:48:22 |
作者 | s_kawamoto <s_kawamoto@user...> |
Commiter | s_kawamoto |
Remove SFTP options.
Rebuild OpenSSL for the new version.
@@ -7,7 +7,7 @@ rem Use compat50.bat to support Windows 2000. | ||
7 | 7 | call compat50.bat |
8 | 8 | perl nodebug.pl |
9 | 9 | nmake /f makefile build_libs |
10 | -copy /y libeay32.dll %var1%\libeay32.dll | |
11 | -copy /y ssleay32.dll %var1%\ssleay32.dll | |
10 | +copy /y libcrypto-1_1-x64.dll %var1%\libcrypto-1_1-x64.dll | |
11 | +copy /y libssl-1_1-x64.dll %var1%\libssl-1_1-x64.dll | |
12 | 12 | popd |
13 | 13 | exit /b |
@@ -7,7 +7,7 @@ rem Use compat50.bat to support Windows 2000. | ||
7 | 7 | call compat50.bat |
8 | 8 | perl nodebug.pl |
9 | 9 | nmake /f makefile build_libs |
10 | -copy /y libeay32.dll %var1%\libeay32.dll | |
11 | -copy /y ssleay32.dll %var1%\ssleay32.dll | |
10 | +copy /y libcrypto-1_1.dll %var1%\libcrypto-1_1.dll | |
11 | +copy /y libssl-1_1.dll %var1%\libssl-1_1.dll | |
12 | 12 | popd |
13 | 13 | exit /b |
@@ -5,12 +5,10 @@ open(FILE, '>makefile'); | ||
5 | 5 | for(@data) |
6 | 6 | { |
7 | 7 | $_ =~ s/ \/debug//g; |
8 | - $_ =~ s/libssl-1_1-x64/ssleay32/g; | |
9 | - $_ =~ s/libcrypto-1_1-x64/libeay32/g; | |
10 | - $_ =~ s/libssl-1_1/ssleay32/g; | |
11 | - $_ =~ s/libcrypto-1_1/libeay32/g; | |
12 | - $_ =~ s/\$\(MTOUTFLAG\)ssleay32\.dll/\$\(MTOUTFLAG\)ssleay32\.dll;#2/g; | |
13 | - $_ =~ s/\$\(MTOUTFLAG\)libeay32\.dll/\$\(MTOUTFLAG\)libeay32\.dll;#2/g; | |
8 | + $_ =~ s/\$\(MTOUTFLAG\)libssl-1_1-x64\.dll/\$\(MTOUTFLAG\)libssl-1_1-x64\.dll;#2/g; | |
9 | + $_ =~ s/\$\(MTOUTFLAG\)libcrypto-1_1-x64\.dll/\$\(MTOUTFLAG\)libcrypto-1_1-x64\.dll;#2/g; | |
10 | + $_ =~ s/\$\(MTOUTFLAG\)libssl-1_1\.dll/\$\(MTOUTFLAG\)libssl-1_1\.dll;#2/g; | |
11 | + $_ =~ s/\$\(MTOUTFLAG\)libcrypto-1_1\.dll/\$\(MTOUTFLAG\)libcrypto-1_1\.dll;#2/g; | |
14 | 12 | $_ =~ s/\"-DENGINESDIR=/\"-DENGINESDIR=\\\"\.\\\"\" \"-D_ENGINESDIR=/g; |
15 | 13 | $_ =~ s/\"-DOPENSSLDIR=/\"-DOPENSSLDIR=\\\"\.\\\"\" \"-D_OPENSSLDIR=/g; |
16 | 14 | print FILE $_; |
@@ -11,10 +11,10 @@ | ||
11 | 11 | 3. OpenSSLのビルド(32ビット版) |
12 | 12 | 3.1. Visual Studio 2008 コマンド プロンプトを起動 |
13 | 13 | 3.2. コマンド プロンプト内でbuildx86.batを実行 |
14 | - 3.3. 正常にビルドされた場合distディレクトリ内にlibeay32.dllおよびssleay32.dllが作成される | |
14 | + 3.3. 正常にビルドされた場合distディレクトリ内にlibcrypto-1_1.dllおよびlibssl-1_1.dllが作成される | |
15 | 15 | |
16 | 16 | 3. OpenSSLのビルド(64ビット版) |
17 | 17 | 3.1. Visual Studio 2008 x64 Win64 コマンド プロンプトを起動 |
18 | 18 | 3.2. コマンド プロンプト内でbuildx64.batを実行 |
19 | - 3.3. 正常にビルドされた場合dist\amd64ディレクトリ内にlibeay32.dllおよびssleay32.dllが作成される | |
19 | + 3.3. 正常にビルドされた場合dist\amd64ディレクトリ内にlibcrypto-1_1-x64.dllおよびlibssl-1_1-x64.dllが作成される | |
20 | 20 |
@@ -235,21 +235,21 @@ END | ||
235 | 235 | // Dialog |
236 | 236 | // |
237 | 237 | |
238 | -about_dlg DIALOGEX 0, 0, 319, 315 | |
238 | +about_dlg DIALOGEX 0, 0, 319, 267 | |
239 | 239 | STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU |
240 | 240 | CAPTION "FFFTPÉ¢Ä" |
241 | 241 | FONT 9, "MS Shell Dlg", 0, 0, 0x0 |
242 | 242 | BEGIN |
243 | - DEFPUSHBUTTON "OK",IDOK,133,294,50,14 | |
243 | + DEFPUSHBUTTON "OK",IDOK,133,246,50,14 | |
244 | 244 | ICON ffftp,-1,7,4,20,20 |
245 | - CTEXT "FFFTP Ver 1.99a-20171104",-1,113,11,90,8 | |
246 | - CTEXT "FFFTPÍfreewareÅ·",-1,7,279,305,8 | |
247 | - CTEXT "Copyright(C) 1997-2010 Sota & ²¦Í¢½¾¢½ûX\nCopyright (C) 2011-2017 FFFTP Project (Hiromichi Matsushima, Suguru Kawamoto, IWAMOTO Kouichi, vitamin0x, ¤È[, Asami, fortran90, tomo1192, Yuji Tanaka, Moriguchi Hirokazu, Ó¤¹ñ)",-1,7,25,305,44,SS_NOPREFIX | |
248 | - CTEXT "",ABOUT_JRE,7,96,305,8 | |
249 | - EDITTEXT ABOUT_URL,7,76,305,12,ES_CENTER | ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER | |
250 | - CTEXT "OLE D&&D@\ by ½cL³ñAnakka³ñ\nzXgàÅÌt@CÚ®@\ by ½cL³ñ\n¢Â©Ì@\ by miau³ñ\n}X^[pX[h@\ by °ñ°ñ³ñ\nAESû by Moca³ñ\n\n¼A½Ìû̲¦Í𢽾«Üµ½B",-1,7,143,305,60 | |
251 | - CTEXT "AES program code :\nCopyright (c) 1998-2008, Brian Gladman, Worcester, UK.\nAll rights reserved.",-1,7,111,305,27 | |
252 | - CTEXT "FTP over SSL/TLSÌÀÉÍOpenSSLðgpµÄ¢Ü·B\nCopyright (c) 1998-2011 The OpenSSL Project. All rights reserved.",-1,7,207,305,60 | |
245 | + CTEXT "FFFTP Ver 2.00",-1,113,11,90,8 | |
246 | + CTEXT "FFFTPÍfreewareÅ·",-1,7,231,305,8 | |
247 | + CTEXT "Copyright(C) 1997-2010 Sota & ²¦Í¢½¾¢½ûX\nCopyright (C) 2011-2017 FFFTP Project (Hiromichi Matsushima, Suguru Kawamoto, IWAMOTO Kouichi, vitamin0x, ¤È[, Asami, fortran90, tomo1192, Yuji Tanaka, Moriguchi Hirokazu, Ó¤¹ñ)",-1,7,25,305,32,SS_NOPREFIX | |
248 | + CTEXT "",ABOUT_JRE,7,84,305,8 | |
249 | + EDITTEXT ABOUT_URL,7,64,305,12,ES_CENTER | ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER | |
250 | + CTEXT "OLE D&&D@\ by ½cL³ñAnakka³ñ\nzXgàÅÌt@CÚ®@\ by ½cL³ñ\n¢Â©Ì@\ by miau³ñ\n}X^[pX[h@\ by °ñ°ñ³ñ\nAESû by Moca³ñ\n\n¼A½Ìû̲¦Í𢽾«Üµ½B",-1,7,131,305,60 | |
251 | + CTEXT "AES program code :\nCopyright (c) 1998-2008, Brian Gladman, Worcester, UK.\nAll rights reserved.",-1,7,99,305,27 | |
252 | + CTEXT "FTP over SSL/TLSÌÀÉÍOpenSSLðgpµÄ¢Ü·B\nCopyright (c) 1998-2011 The OpenSSL Project. All rights reserved.",-1,7,195,305,24 | |
253 | 253 | END |
254 | 254 | |
255 | 255 | transfer_dlg DIALOG 0, 0, 199, 91 |
@@ -1385,11 +1385,7 @@ BEGIN | ||
1385 | 1385 | CONTROL "ûȵÅÚ±ðÂ(&A)",HSET_NO_ENCRYPTION,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,7,148,10 |
1386 | 1386 | CONTROL "FTPS (Explicit)ÅÚ±(&E)",HSET_FTPES,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,21,148,10 |
1387 | 1387 | CONTROL "FTPS (Implicit)ÅÚ±(&I)",HSET_FTPIS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,35,148,10 |
1388 | - CONTROL "SFTPÅÚ±(&S)",HSET_SFTP,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,49,148,10 | |
1389 | - LTEXT "駮ÌeLXg",-1,7,63,64,8 | |
1390 | - PUSHBUTTON "...",PKEY_FILE_BR,72,63,13,12 | |
1391 | - EDITTEXT HSET_PRIVATE_KEY,7,79,193,44,ES_MULTILINE | ES_AUTOHSCROLL | ES_WANTRETURN | WS_VSCROLL | WS_HSCROLL | |
1392 | - CONTROL "ã¢Ã»û®ðgpµÈ¢(&W)",HSET_NO_WEAK,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,127,148,10 | |
1388 | + CONTROL "ã¢Ã»û®ðgpµÈ¢(&W)",HSET_NO_WEAK,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,49,148,10 | |
1393 | 1389 | END |
1394 | 1390 | |
1395 | 1391 | hset_adv3_dlg DIALOG 0, 0, 207, 155 |
@@ -2214,8 +2210,8 @@ nodrop_csr CURSOR "nodrop_c.cur" | ||
2214 | 2210 | // |
2215 | 2211 | |
2216 | 2212 | VS_VERSION_INFO VERSIONINFO |
2217 | - FILEVERSION 1,99,1,19 | |
2218 | - PRODUCTVERSION 1,99,1,19 | |
2213 | + FILEVERSION 2,0,0,0 | |
2214 | + PRODUCTVERSION 2,0,0,0 | |
2219 | 2215 | FILEFLAGSMASK 0x3fL |
2220 | 2216 | #ifdef _DEBUG |
2221 | 2217 | FILEFLAGS 0x1L |
@@ -2233,12 +2229,12 @@ BEGIN | ||
2233 | 2229 | VALUE "Comments", "±êÍt[\tgEGAÅ·B" |
2234 | 2230 | VALUE "CompanyName", "Sota, FFFTP Project" |
2235 | 2231 | VALUE "FileDescription", "FFFTP" |
2236 | - VALUE "FileVersion", "1, 99, 1, 19" | |
2232 | + VALUE "FileVersion", "2, 0, 0, 0" | |
2237 | 2233 | VALUE "InternalName", "FFFTP" |
2238 | 2234 | VALUE "LegalCopyright", "Copyright (C) 1997-2010 Sota & ²¦Í¢½¾¢½ûX\nCopyright (C) 2011-2017 FFFTP Project (Hiromichi Matsushima, Suguru Kawamoto, IWAMOTO Kouichi, vitamin0x, ¤È[, Asami, fortran90, tomo1192, Yuji Tanaka, Moriguchi Hirokazu, Ó¤¹ñ)." |
2239 | 2235 | VALUE "OriginalFilename", "FFFTP.exe" |
2240 | 2236 | VALUE "ProductName", "FFFTP" |
2241 | - VALUE "ProductVersion", "1, 99, 1, 19" | |
2237 | + VALUE "ProductVersion", "2, 0, 0, 0" | |
2242 | 2238 | END |
2243 | 2239 | END |
2244 | 2240 | BLOCK "VarFileInfo" |
@@ -235,21 +235,21 @@ END | ||
235 | 235 | // Dialog |
236 | 236 | // |
237 | 237 | |
238 | -about_dlg DIALOGEX 0, 0, 315, 317 | |
238 | +about_dlg DIALOGEX 0, 0, 315, 269 | |
239 | 239 | STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU |
240 | 240 | CAPTION "About FFFTP" |
241 | 241 | FONT 9, "MS Shell Dlg", 0, 0, 0x0 |
242 | 242 | BEGIN |
243 | - DEFPUSHBUTTON "OK",IDOK,132,296,50,14 | |
243 | + DEFPUSHBUTTON "OK",IDOK,132,248,50,14 | |
244 | 244 | ICON ffftp,-1,7,4,20,20 |
245 | - CTEXT "FFFTP Ver 1.99a-20171104",-1,110,11,90,8 | |
246 | - CTEXT "FFFTP is freeware",-1,7,281,301,8 | |
247 | - CTEXT "Copyright(C) 1997-2010 Sota && cooperators\nCopyright (C) 2011-2017 FFFTP Project (Hiromichi Matsushima, Suguru Kawamoto, IWAMOTO Kouichi, vitamin0x, unarist, Asami, fortran90, tomo1192, Yuji Tanaka, Moriguchi Hirokazu, Fu-sen)",-1,7,25,301,44 | |
248 | - CTEXT "",ABOUT_JRE,7,93,301,8 | |
249 | - EDITTEXT ABOUT_URL,7,76,301,12,ES_CENTER | ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER | |
250 | - CTEXT "OLE D&&D by Yutaka Hirata-san, nakka-san\nIn site file mover by Hirata-san\nAny issues by miau-san\nMaster Password by Gengen-san\nAES encryption by Moca-san\n\nI had cooperation of many other one.",-1,7,142,301,59 | |
251 | - CTEXT "AES program code :\nCopyright (c) 1998-2008, Brian Gladman, Worcester, UK.\nAll rights reserved.",-1,7,110,301,27 | |
252 | - CTEXT "OpenSSL is used for implementation of FTP over SSL/TLS.\nCopyright (c) 1998-2011 The OpenSSL Project. All rights reserved.",-1,7,209,305,60 | |
245 | + CTEXT "FFFTP Ver 2.00",-1,110,11,90,8 | |
246 | + CTEXT "FFFTP is freeware",-1,7,233,301,8 | |
247 | + CTEXT "Copyright(C) 1997-2010 Sota && cooperators\nCopyright (C) 2011-2017 FFFTP Project (Hiromichi Matsushima, Suguru Kawamoto, IWAMOTO Kouichi, vitamin0x, unarist, Asami, fortran90, tomo1192, Yuji Tanaka, Moriguchi Hirokazu, Fu-sen)",-1,7,25,301,32 | |
248 | + CTEXT "",ABOUT_JRE,7,81,301,8 | |
249 | + EDITTEXT ABOUT_URL,7,64,301,12,ES_CENTER | ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER | |
250 | + CTEXT "OLE D&&D by Yutaka Hirata-san, nakka-san\nIn site file mover by Hirata-san\nAny issues by miau-san\nMaster Password by Gengen-san\nAES encryption by Moca-san\n\nI had cooperation of many other one.",-1,7,130,301,59 | |
251 | + CTEXT "AES program code :\nCopyright (c) 1998-2008, Brian Gladman, Worcester, UK.\nAll rights reserved.",-1,7,98,301,27 | |
252 | + CTEXT "OpenSSL is used for implementation of FTP over SSL/TLS.\nCopyright (c) 1998-2011 The OpenSSL Project. All rights reserved.",-1,7,197,305,24 | |
253 | 253 | END |
254 | 254 | |
255 | 255 | transfer_dlg DIALOG 0, 0, 199, 91 |
@@ -1423,12 +1423,8 @@ BEGIN | ||
1423 | 1423 | "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,7,148,10 |
1424 | 1424 | CONTROL "Connect with FTPS (&Explicit)",HSET_FTPES,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,21,148,10 |
1425 | 1425 | CONTROL "Connect with FTPS (&Implicit)",HSET_FTPIS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,35,148,10 |
1426 | - CONTROL "Connect with &SFTP",HSET_SFTP,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,49,148,10 | |
1427 | - LTEXT "Private key text",-1,7,63,64,8 | |
1428 | - PUSHBUTTON "...",PKEY_FILE_BR,72,63,13,12 | |
1429 | - EDITTEXT HSET_PRIVATE_KEY,7,79,193,44,ES_MULTILINE | ES_AUTOHSCROLL | ES_WANTRETURN | WS_VSCROLL | WS_HSCROLL | |
1430 | 1426 | CONTROL "Do not use &weak encryption methods",HSET_NO_WEAK, |
1431 | - "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,127,148,10 | |
1427 | + "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,49,148,10 | |
1432 | 1428 | END |
1433 | 1429 | |
1434 | 1430 | hset_adv3_dlg DIALOG 0, 0, 207, 155 |
@@ -2255,8 +2251,8 @@ nodrop_csr CURSOR "nodrop_c.cur" | ||
2255 | 2251 | // |
2256 | 2252 | |
2257 | 2253 | VS_VERSION_INFO VERSIONINFO |
2258 | - FILEVERSION 1,99,1,19 | |
2259 | - PRODUCTVERSION 1,99,1,19 | |
2254 | + FILEVERSION 2,0,0,0 | |
2255 | + PRODUCTVERSION 2,0,0,0 | |
2260 | 2256 | FILEFLAGSMASK 0x3fL |
2261 | 2257 | #ifdef _DEBUG |
2262 | 2258 | FILEFLAGS 0x1L |
@@ -2274,12 +2270,12 @@ BEGIN | ||
2274 | 2270 | VALUE "Comments", "This software is Free Software" |
2275 | 2271 | VALUE "CompanyName", "Sota, FFFTP Project" |
2276 | 2272 | VALUE "FileDescription", "FFFTP" |
2277 | - VALUE "FileVersion", "1, 99, 1, 19" | |
2273 | + VALUE "FileVersion", "2, 0, 0, 0" | |
2278 | 2274 | VALUE "InternalName", "FFFTP" |
2279 | 2275 | VALUE "LegalCopyright", "Copyright (C) 1997-2010 Sota & cooperators\nCopyright (C) 2011-2017 FFFTP Project (Hiromichi Matsushima, Suguru Kawamoto, IWAMOTO Kouichi, vitamin0x, unarist, Asami, fortran90, tomo1192, Yuji Tanaka, Moriguchi Hirokazu, Fu-sen)." |
2280 | 2276 | VALUE "OriginalFilename", "FFFTP.exe" |
2281 | 2277 | VALUE "ProductName", "FFFTP" |
2282 | - VALUE "ProductVersion", "1, 99, 1, 19" | |
2278 | + VALUE "ProductVersion", "2, 0, 0, 0" | |
2283 | 2279 | END |
2284 | 2280 | END |
2285 | 2281 | BLOCK "VarFileInfo" |
@@ -72,12 +72,12 @@ | ||
72 | 72 | //#define PROGRAM_VERSION_NUM 1972 /* バージョン */ |
73 | 73 | // 64ビット対応 |
74 | 74 | #ifdef _WIN64 |
75 | -#define VER_STR "1.99a-20171104 64bit" | |
75 | +#define VER_STR "2.00 64bit" | |
76 | 76 | #else |
77 | -#define VER_STR "1.99a-20171104" | |
77 | +#define VER_STR "2.00" | |
78 | 78 | #endif |
79 | -#define VER_NUM 1991 /* 設定バージョン */ | |
80 | -#define PROGRAM_VERSION_NUM 1991 /* バージョン */ | |
79 | +#define VER_NUM 2000 /* 設定バージョン */ | |
80 | +#define PROGRAM_VERSION_NUM 2000 /* バージョン */ | |
81 | 81 | // ソフトウェア自動更新 |
82 | 82 | // リリースバージョンはリリース予定年(10進数4桁)+月(2桁)+日(2桁)+通し番号(0スタート2桁)とする |
83 | 83 | // 2014年7月31日中の30個目のリリースは2014073129 |
@@ -4,14 +4,14 @@ | ||
4 | 4 | // ssl.pem |
5 | 5 | #define FILEHASH_SSL_PEM_SHA1 "\xB5\x0E\xE9\xDC\x25\x9D\xAC\x83\x09\xB3\x42\xA3\xB9\x7C\xF2\x1A\xAD\xA8\x27\xA6" |
6 | 6 | #if defined(_M_IX86) |
7 | -// libeay32.dll | |
8 | -#define FILEHASH_LIBEAY32_DLL_SHA1 "\xE4\xA5\x2E\xB0\x80\xB5\x07\x4B\x40\xB0\x15\x71\xC5\xAA\x6F\xF8\xF3\xC4\x97\xFC" | |
9 | -// ssleay32.dll | |
10 | -#define FILEHASH_SSLEAY32_DLL_SHA1 "\x93\x4D\xF4\xDA\x2C\x4A\x65\x53\x56\xA7\xB3\xD3\x2F\x9C\x86\xBA\xB4\xF8\xDD\x48" | |
7 | +// libcrypto-1_1.dll | |
8 | +#define FILEHASH_LIBCRYPTO_DLL_SHA1 "\x8F\xA8\x54\xD1\x27\x65\x18\xE4\x43\xA5\x5C\xAF\x65\x39\x66\xB8\x3A\x05\xE8\x0B" | |
9 | +// libssl-1_1.dll | |
10 | +#define FILEHASH_LIBSSL_DLL_SHA1 "\x42\x65\x00\x4A\xC9\xF8\xFE\x28\x49\xE2\x90\x51\x58\x2B\x57\x09\x97\xB0\x3B\xAD" | |
11 | 11 | #elif defined(_M_AMD64) |
12 | -// libeay32.dll | |
13 | -#define FILEHASH_LIBEAY32_DLL_SHA1 "\x70\xA9\xCC\x67\x1B\xE5\x18\xF4\x29\x20\xD6\x3F\xBD\xAA\x57\xA6\x12\x43\xE5\xFB" | |
14 | -// ssleay32.dll | |
15 | -#define FILEHASH_SSLEAY32_DLL_SHA1 "\xF8\xF1\xF0\x1E\x7E\x20\xC6\xBF\x01\x84\xF6\x86\x90\x72\x5F\x8C\xF4\xF3\x2F\x57" | |
12 | +// libcrypto-1_1-x64.dll | |
13 | +#define FILEHASH_LIBCRYPTO_DLL_SHA1 "\xAF\xD4\xCF\x21\x2B\x87\x92\x25\x6B\x6F\x8E\x49\x36\x85\xD4\xC9\x2E\xFC\x88\xC7" | |
14 | +// libssl-1_1-x64.dll | |
15 | +#define FILEHASH_LIBSSL_DLL_SHA1 "\x91\xE6\xC3\x0B\xAF\x9A\x13\x24\x12\x73\x3D\x96\x3A\xBA\xB2\xA1\x0D\x43\x44\x5E" | |
16 | 16 | #endif |
17 | 17 |
@@ -160,12 +160,18 @@ BOOL LoadOpenSSL() | ||
160 | 160 | if(g_bOpenSSLLoaded) |
161 | 161 | return FALSE; |
162 | 162 | #ifdef ENABLE_PROCESS_PROTECTION |
163 | - // ssleay32.dll 1.1.0b | |
164 | - RegisterTrustedModuleSHA1Hash(FILEHASH_SSLEAY32_DLL_SHA1); | |
165 | - // libeay32.dll 1.1.0b | |
166 | - RegisterTrustedModuleSHA1Hash(FILEHASH_LIBEAY32_DLL_SHA1); | |
163 | + // libssl-1_1.dll 1.1.0g | |
164 | + RegisterTrustedModuleSHA1Hash(FILEHASH_LIBCRYPTO_DLL_SHA1); | |
165 | + // libcrypto-1_1.dll 1.1.0g | |
166 | + RegisterTrustedModuleSHA1Hash(FILEHASH_LIBSSL_DLL_SHA1); | |
167 | +#endif | |
168 | + // OpenSSL 1.1.0対応 | |
169 | +// g_hOpenSSL = LoadLibrary("ssleay32.dll"); | |
170 | +#if defined(_M_IX86) | |
171 | + g_hOpenSSL = LoadLibrary("libssl-1_1.dll"); | |
172 | +#elif defined(_M_AMD64) | |
173 | + g_hOpenSSL = LoadLibrary("libssl-1_1-x64.dll"); | |
167 | 174 | #endif |
168 | - g_hOpenSSL = LoadLibrary("ssleay32.dll"); | |
169 | 175 | // バージョン固定のためlibssl32.dllの読み込みは脆弱性の原因になり得るので廃止 |
170 | 176 | // if(!g_hOpenSSL) |
171 | 177 | // g_hOpenSSL = LoadLibrary("libssl32.dll"); |
@@ -204,7 +210,13 @@ BOOL LoadOpenSSL() | ||
204 | 210 | g_hOpenSSL = NULL; |
205 | 211 | return FALSE; |
206 | 212 | } |
207 | - g_hOpenSSLCommon = LoadLibrary("libeay32.dll"); | |
213 | + // OpenSSL 1.1.0対応 | |
214 | +// g_hOpenSSLCommon = LoadLibrary("libeay32.dll"); | |
215 | +#if defined(_M_IX86) | |
216 | + g_hOpenSSLCommon = LoadLibrary("libcrypto-1_1.dll"); | |
217 | +#elif defined(_M_AMD64) | |
218 | + g_hOpenSSLCommon = LoadLibrary("libcrypto-1_1-x64.dll"); | |
219 | +#endif | |
208 | 220 | if(!g_hOpenSSLCommon |
209 | 221 | || !(p_BIO_s_mem = (_BIO_s_mem)GetProcAddress(g_hOpenSSLCommon, "BIO_s_mem")) |
210 | 222 | || !(p_BIO_new = (_BIO_new)GetProcAddress(g_hOpenSSLCommon, "BIO_new")) |