mirror of
https://github.com/SunnyQjm/MIRCertificationManager.git
synced 2026-06-14 16:51:34 +08:00
fix: 测试并修复了查询证书剩余生存期,以及判断证书是否存在的接口
This commit is contained in:
@@ -73,6 +73,7 @@ void Server::onInterest(const InterestFilter &filter, const Interest &interest)
|
||||
case BaseRequestMessage::GET_CERTIFICATE_LIFETIME: // 获取证书的生存期
|
||||
getLifetimeRequestMessage.parse(params);
|
||||
longResult = ndnCertificationUtil.getCertLifetime(getLifetimeRequestMessage.getCertStr());
|
||||
std::cout << "longResult: " << longResult << std::endl;
|
||||
root["data"] = (long long int) longResult;
|
||||
if (longResult >= 0) {
|
||||
resCode = 0;
|
||||
|
||||
Reference in New Issue
Block a user