From 7998170f46f28722a39174340594696259786f99 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Thu, 7 Apr 2011 17:09:29 +0300 Subject: [PATCH] Unused headers removed --- include/lp2_blocks.h | 82 --------------------------------- include/stg_common.h | 23 --------- include/stg_comp_stat.h | 41 ----------------- include/stg_int.h | 11 ----- include/vpn_stg_packets.h | 58 ----------------------- stglibs/common.lib/stg_common.h | 23 --------- 6 files changed, 238 deletions(-) delete mode 100644 include/lp2_blocks.h delete mode 100644 include/stg_common.h delete mode 100644 include/stg_comp_stat.h delete mode 100644 include/stg_int.h delete mode 100644 include/vpn_stg_packets.h delete mode 100644 stglibs/common.lib/stg_common.h diff --git a/include/lp2_blocks.h b/include/lp2_blocks.h deleted file mode 100644 index fddab42b..00000000 --- a/include/lp2_blocks.h +++ /dev/null @@ -1,82 +0,0 @@ -#define setPBlockStart(qwer) asm("subb $0x20,l_"#qwer"SC1\n"\ -"l_"#qwer"SC1: .byte 0x80\n"\ -" addb $0x20,l_"#qwer"SC1\n"\ -" jmp l_"#qwer"Decryptor\n\t"\ - ".string \"m_TCodeStart\"\n\t"\ - " l_"#qwer"TCodeStart: nop\n\t") - - -#define setPBlockEnd(qwer) asm(" jmp l_"#qwer"Cryptor\n"\ -" .string \"m_TCodeEnd\"\n"\ -" nop\n"\ -" nop\n"\ -" nop\n"\ -" nop\n"\ -" .string \"m_PCodeEP\"\n"\ -"l_"#qwer"Cryptor: movl d_"#qwer"Length,%edx\n"\ -" subl $4,%edx \n"\ -"l_"#qwer"Cryptor_l1: movl $28,%eax\n"\ -"l_"#qwer"Cryptor_l2: movl $d_"#qwer"Password,%ebx\n"\ -" movl (%eax,%ebx),%ecx\n"\ -" movl d_"#qwer"Start_Adr,%ebx\n"\ -" xorl %ecx,(%ebx,%edx)\n"\ -" rorl %cl,(%ebx,%edx)\n"\ -" subl $4,%edx\n"\ -" js l_"#qwer"Cryptor_ex1\n"\ -" subl $4,%eax\n"\ -" js l_"#qwer"Cryptor_l1\n"\ -" jmp l_"#qwer"Cryptor_l2\n"\ -"l_"#qwer"Cryptor_ex1: jmp l_"#qwer"Exit\n"\ -"l_"#qwer"Decryptor: movl d_"#qwer"Length,%edx\n"\ -" subl $4,%edx \n"\ -"l_"#qwer"Decryptor_l1:movl $28,%eax\n"\ -"l_"#qwer"Decryptor_l2:movl $d_"#qwer"Password,%ebx\n"\ -" movl (%eax,%ebx),%ecx\n"\ -" movl d_"#qwer"Start_Adr,%ebx\n"\ -" roll %cl,(%ebx,%edx)\n"\ -" xorl %ecx,(%ebx,%edx)\n"\ -" subl $4,%edx\n"\ -" js l_"#qwer"Decryptor_ex1\n"\ -" subl $4,%eax\n"\ -" js l_"#qwer"Decryptor_l1\n"\ -" jmp l_"#qwer"Decryptor_l2\n"\ -"l_"#qwer"Decryptor_ex1:jmp l_"#qwer"TCodeStart\n"\ -"d_"#qwer"Start_Adr: .string \"m_TCodeStartAdr\"\n"\ -"d_"#qwer"Length: .string \"m_TCodeLength\"\n"\ -"d_"#qwer"Password:.string \"m_TCodePass\"\n"\ -" .string \"_trfgfgfgfdfgfdfgfdfg\"\n"\ -" .string \"m_PCodeRet\"\n"\ -"l_"#qwer"Exit: addb $0x19,l_"#qwer"SC2\n"\ -"l_"#qwer"SC2: .byte 0x48\n"\ -" subb $0x19,l_"#qwer"SC2\n") - -#define DecryptROData \ -asm(\ -" .string \"m_ROEP\"\n"\ -" subb $0x20,l_ro_SC1\n"\ -"l_ro_SC1: .byte 0x80\n"\ -" addb $0x20,l_ro_SC1\n"\ -"l_ro_Decryptor: movl d_ro_Length,%edx\n"\ -" subl $4,%edx \n"\ -"l_ro_Decryptor_l1: movl $28,%eax\n"\ -"l_ro_Decryptor_l2: movl $d_ro_Password,%ebx\n"\ -" movl (%eax,%ebx),%ecx\n"\ -" movl d_ro_Start_Adr,%ebx\n"\ -" roll %cl,(%ebx,%edx)\n"\ -" subl $4,%edx\n"\ -" js l_ro_Exit\n"\ -" subl $4,%eax\n"\ -" js l_ro_Decryptor_l1\n"\ -" jmp l_ro_Decryptor_l2\n"\ -"d_ro_Start_Adr: .string \"m_ROStartAdr\"\n"\ -"d_ro_Length: .string \"m_ROLength\"\n"\ -"d_ro_ExitAdr: .string \"m_ROExitAdr\"\n"\ -"d_ro_Password: .string \"m_ROPass\"\n"\ -" .string \"_trfgfgfgfdfgfdfgfdfg____\"\n"\ -"l_ro_Exit: .byte 0x61\n"\ -" push d_ro_ExitAdr\n"\ -" ret\n") - - - - diff --git a/include/stg_common.h b/include/stg_common.h deleted file mode 100644 index e49f999e..00000000 --- a/include/stg_common.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - ***************************************************************************** - * - * File: stg_common.h - * - * Description: çÌÏÂÁÌØÎÏÅ ÄÌÑ ×ÓÅÇÏ ÐÒÏÅËÔÁ STG - * - * $Id: stg_common.h,v 1.1.1.1 2005/10/09 11:00:45 nobunaga Exp $ - * - ***************************************************************************** - */ - -#ifndef _STG_COMMON_H_ -#define _STG_COMMON_H_ - - -#define LOGIN_LEN (32) -#define PASSWD_LEN (32) - -#endif /* _STG_COMMON_H_ */ - -/* EOF */ - diff --git a/include/stg_comp_stat.h b/include/stg_comp_stat.h deleted file mode 100644 index 3bab9a7a..00000000 --- a/include/stg_comp_stat.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef STG_COMP_STAT_H -#define STG_COMP_STAT_H - -#ifdef LINUX -#include -#endif - -#ifdef FREE_BSD5 -#include -#endif - -#ifdef FREE_BSD -#include -#endif - -#include "stg_const.h" -//----------------------------------------------------------------------------- -struct DAY_STAT -{ - DAY_STAT() - { - lastUpdate = 0; - memset(upload, 0, sizeof(uint64_t) * DIR_NUM); - memset(download, 0, sizeof(uint64_t) * DIR_NUM); - memset(cash, 0, sizeof(double) * DIR_NUM); - } - - time_t lastUpdate; - uint64_t upload[DIR_NUM]; - uint64_t download[DIR_NUM]; - double cash[DIR_NUM]; -}; -//----------------------------------------------------------------------------- -struct MONTH_STAT -{ - DAY_STAT dayStat[31]; - char notUsed; -}; -//----------------------------------------------------------------------------- - -#endif //STG_COMP_STAT_H diff --git a/include/stg_int.h b/include/stg_int.h deleted file mode 100644 index 30de8f5e..00000000 --- a/include/stg_int.h +++ /dev/null @@ -1,11 +0,0 @@ -#ifdef LINUX -#include -#endif - -#ifdef FREE_BSD5 -#include -#endif - -#ifdef FREE_BSD -#include -#endif diff --git a/include/vpn_stg_packets.h b/include/vpn_stg_packets.h deleted file mode 100644 index e1f0b0b8..00000000 --- a/include/vpn_stg_packets.h +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef vpn_stg_packets_h -#define vpn_stg_packets_h - -#define VS_MAGIC "VS01" - -enum -{ -GET_LOGIN, -GET_LOGIN_ANS, -VS_ALIVE, -VS_ALIVE_ANS, -VS_DISCONNECT -} - - -struct VS_GET_LOGIN -{ -char magic[4]; -STG_PACKET_TYPES type; -char login[32]; -//char password[32]; -}; - -struct VS_CHECK_LOGIN_ANS -{ -char magic[4]; -STG_PACKET_TYPES type; -char login[32]; -char password[32]; -uint32_t ip; -}; - -struct VS_ALIVE -{ -char magic[4]; -STG_PACKET_TYPES type; -char login[32]; -uint32_t ip; -}; - -struct VS_ALIVE_ANS -{ -char magic[4]; -STG_PACKET_TYPES type; -char login[32]; -uint32_t ip; -}; - -struct VS_DISCONNECT -{ -char magic[4]; -STG_PACKET_TYPES type; -char login[32]; -uint32_t ip; -}; - - -#endif diff --git a/stglibs/common.lib/stg_common.h b/stglibs/common.lib/stg_common.h deleted file mode 100644 index 43a43d3c..00000000 --- a/stglibs/common.lib/stg_common.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - ***************************************************************************** - * - * File: stg_common.h - * - * Description: çÌÏÂÁÌØÎÏÅ ÄÌÑ ×ÓÅÇÏ ÐÒÏÅËÔÁ STG - * - * $Id: stg_common.h,v 1.1.1.1 2005/09/29 11:33:18 boris Exp $ - * - ***************************************************************************** - */ - -#ifndef _STG_COMMON_H_ -#define _STG_COMMON_H_ - - -#define LOGIN_LEN (32) -#define PASSWD_LEN (32) - -#endif /* _STG_COMMON_H_ */ - -/* EOF */ - -- 2.43.2