29 lines
526 B
C
29 lines
526 B
C
|
#pragma once
|
|||
|
|
|||
|
#include "ICertificate.h"
|
|||
|
|
|||
|
/*
|
|||
|
@berf 用户软件端证书对象
|
|||
|
*/
|
|||
|
class IView;
|
|||
|
namespace util {
|
|||
|
class ICeroptions;
|
|||
|
}
|
|||
|
|
|||
|
class License : virtual public util::ICertificate
|
|||
|
{
|
|||
|
public:
|
|||
|
License();
|
|||
|
|
|||
|
// 解析证书
|
|||
|
void Parse(const char* lic, uint16_t len) override;
|
|||
|
|
|||
|
// 生成证书
|
|||
|
void CreateCertificate(const IView* v, util::ICeroptions* op) override;
|
|||
|
|
|||
|
// 验证证书
|
|||
|
int Verification(const char* lic) override;
|
|||
|
|
|||
|
// 验证失败的具体信息
|
|||
|
void GetErrMsg(int index, char er[30]) const final;
|
|||
|
};
|