|
#pragma once
typedef struct tag_KEY_INFO
{
int sd;
unsigned char key[17];
int key_len;
tag_KEY_INFO *pnext;
}KEY_INFO;
class CKeyManager
{
public:
CKeyManager(void);
~CKeyManager(void);
CRITICAL_SECTION m_cs_key;
KEY_INFO *m_pkey_info;
int m_key_info_count;
int AddKey(int sd, unsigned char *key, int key_len);
int RemoveKey(int sd);
void RemoveAllKey();
int GenKey(unsigned char * key);
KEY_INFO *GetKey(int sd);
};
|
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