mirror of
https://gitee.com/openharmony/security_certificate_manager
synced 2024-11-27 09:40:59 +00:00
!283 高安模式下去除凭据安装的限制和fuzz用例时修复使用内存释放后的值
Merge pull request !283 from 张余/master
This commit is contained in:
commit
28a3f2c687
@ -89,17 +89,7 @@ CM_API_EXPORT int32_t CmInstallAppCert(const struct CmBlob *appCert, const struc
|
||||
return CMR_ERROR_INVALID_ARGUMENT;
|
||||
}
|
||||
|
||||
bool isAdvSecMode = false;
|
||||
int32_t ret = CheckAdvSecMode(&isAdvSecMode);
|
||||
if (ret != CM_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
if (isAdvSecMode) {
|
||||
CM_LOG_E("InstallAppCert: the device enters advanced security mode");
|
||||
return CMR_ERROR_DEVICE_ENTER_ADVSECMODE;
|
||||
}
|
||||
|
||||
ret = CmClientInstallAppCert(appCert, appCertPwd, certAlias, store, keyUri);
|
||||
int32_t ret = CmClientInstallAppCert(appCert, appCertPwd, certAlias, store, keyUri);
|
||||
CM_LOG_D("leave install app certificate, result = %d", ret);
|
||||
return ret;
|
||||
}
|
||||
|
@ -59,7 +59,6 @@ static int32_t GetInputParams(const struct CmBlob *paramSetBlob, struct CmParamS
|
||||
ret = CmParamSetToParams(*paramSet, params, paramsCount);
|
||||
if (ret != CM_SUCCESS) {
|
||||
CM_LOG_E("get params from paramSet failed, ret = %d", ret);
|
||||
CmFreeParamSet(paramSet); /* if success no need free paramSet */
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user