Код: Выделить всё
class LICENSING_API KeyValidatorT {
public:
KeyValidatorT();
KeyValidatorT(const LicenseTemplateT * keyTemplate);
~KeyValidatorT();
static KeyValidatorT * Create();
static void Destroy(KeyValidatorT *);
// Set the template used for validation (the template contains the license key format and the ECC verification key)
void SetKeyTemplate(const LicenseTemplateT & keyTemplate);
void SetKeyTemplate(const LicenseTemplateT * keyTemplate);
// Set the license key used for validation and data query
void SetKey(const _XCHAR * key);
void SetValidationData(const _XCHAR * fieldName, const void * buf, int len);
void SetValidationData(const _XCHAR * fieldName, const _XCHAR * data);
void SetValidationData(const _XCHAR * fieldName, int data);
// Verifies the license key's signature using the public(verification) ECC key from the template
bool IsKeyValid();
// Queries the license key for data. The data is returned in raw format (a byte buffer).
void QueryKeyData(const _XCHAR * dataField, void * buf, int * len);
int QueryIntKeyData(const _XCHAR * dataField);
void QueryDateKeyData(const _XCHAR * dataField, int * year, int * month, int * day);
void QueryValidationData(const _XCHAR * filedName, void * buf, int * len);
private:
KeyValidatorImpl & m_Impl;
};
Подробнее здесь: https://stackoverflow.com/questions/786 ... rom-python
Мобильная версия