|
#ifndef _Crypt_H_
typedef int (WINAPI *CRYPTDATA)(char *, int, char *, int *);
typedef int (WINAPI *DECRYPTDATA)(char *, int, char *, int *);
typedef struct
{
char app[128];
char ip[16];
char local_port_type[2];
int server_port;
}CRYPT_INFO;
class CryptFilter
{
public:
CryptFilter();
~CryptFilter();
BOOL CryptCheck(char *remote_ip, int local_port, int remote_port);
int CryptData(char *data, int data_len, char *data_crypted, int *pdata_crypted_len);
int DecryptData(char *data, int data_len, char *data_decrypted, int *pdata_decrypted_len);
CRYPTDATA myCryptData;
DECRYPTDATA myDecryptData;
HANDLE hModCrypt;
CRYPT_INFO *m_pCryptInfo;
int m_crypt_info_count;
};
#endif
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here