From e80f294e80ae3fa8ad97b9ed2e7e957272bd5de9 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 29 Dec 2014 15:06:11 +0900 Subject: [PATCH] =?UTF-8?q?kcp=20=ED=9C=B4=EB=8C=80=ED=8F=B0=20=EC=9D=B8?= =?UTF-8?q?=EC=A6=9D=2064=EB=B9=84=ED=8A=B8=20=EC=8B=9C=EC=8A=A4=ED=85=9C?= =?UTF-8?q?=EC=97=90=EC=84=9C=EC=9D=98=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/kcpcert/lib/ct_cli_lib.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/plugin/kcpcert/lib/ct_cli_lib.php b/plugin/kcpcert/lib/ct_cli_lib.php index 32a77d5cf..cdd5d8177 100644 --- a/plugin/kcpcert/lib/ct_cli_lib.php +++ b/plugin/kcpcert/lib/ct_cli_lib.php @@ -22,7 +22,12 @@ class C_CT_CLI // hash 처리 영역 function make_hash_data( $home_dir , $str ) { - $hash_data = $this -> mf_exec( $home_dir . "/bin/ct_cli" , + if(PHP_INT_MAX == 2147483647) // 32-bit + $bin_exe = $home_dir . '/bin/ct_cli'; + else + $bin_exe = $home_dir . '/bin/ct_cli_x64'; + + $hash_data = $this -> mf_exec( $bin_exe , "lf_CT_CLI__make_hash_data", $str ); @@ -35,7 +40,12 @@ class C_CT_CLI // dn_hash 체크 함수 function check_valid_hash ($home_dir , $hash_data , $str ) { - $ret_val = $this -> mf_exec( $home_dir . "/bin/ct_cli" , + if(PHP_INT_MAX == 2147483647) // 32-bit + $bin_exe = $home_dir . '/bin/ct_cli'; + else + $bin_exe = $home_dir . '/bin/ct_cli_x64'; + + $ret_val = $this -> mf_exec( $bin_exe , "lf_CT_CLI__check_valid_hash" , $hash_data , $str