mirror of
https://gitee.com/openharmony/security_certificate_manager
synced 2024-11-27 01:30:33 +00:00
修改log单词拼写错误
Signed-off-by: haixiangw <wanghaixiang@huawei.com>
This commit is contained in:
parent
40bc88f68d
commit
6fe914fc88
@ -27,7 +27,7 @@
|
||||
|
||||
#define MAX_PATH_LEN 512
|
||||
#define MAX_AUTH_COUNT 256
|
||||
#define AUTH_LIST_VERSON 0
|
||||
#define AUTH_LIST_VERSION 0
|
||||
|
||||
static int32_t CheckAuthListFileSizeValid(const struct CmBlob *originList, uint32_t *authCount)
|
||||
{
|
||||
@ -219,7 +219,7 @@ static int32_t RefreshAuthListBuf(const char *path, const char *fileName, uint32
|
||||
static int32_t InitAuthListBuf(uint32_t uid, struct CmBlob *authList)
|
||||
{
|
||||
uint32_t count = 1;
|
||||
uint32_t version = AUTH_LIST_VERSON;
|
||||
uint32_t version = AUTH_LIST_VERSION;
|
||||
uint32_t size = sizeof(version) + sizeof(count) + sizeof(uid) * count;
|
||||
uint8_t *data = (uint8_t *)CMMalloc(size);
|
||||
if (data == NULL) {
|
||||
|
@ -59,7 +59,7 @@ static int32_t GetUpdateFlag(uint8_t *updateFlag)
|
||||
uint8_t updateFlagTmp = false;
|
||||
|
||||
if (updateFlag == NULL) {
|
||||
CM_LOG_E("input params is invaild");
|
||||
CM_LOG_E("input params is invalid");
|
||||
return CMR_ERROR_INVALID_ARGUMENT;
|
||||
}
|
||||
|
||||
@ -109,7 +109,7 @@ int32_t IsCertNeedBackup(uint32_t userId, uint32_t uid, const struct CmBlob *cer
|
||||
char configPath[CERT_MAX_PATH_LEN] = { 0 };
|
||||
|
||||
if (needUpdate == NULL) {
|
||||
CM_LOG_E("input params is invaild");
|
||||
CM_LOG_E("input params is invalid");
|
||||
return CMR_ERROR_INVALID_ARGUMENT;
|
||||
}
|
||||
|
||||
|
@ -341,7 +341,7 @@ static int32_t CmTraversalDir(const struct CmContext *context, const char *path,
|
||||
static int32_t CmTraversalBackupUidDir(const char *certConfigUidDirPath)
|
||||
{
|
||||
if (certConfigUidDirPath == NULL) {
|
||||
CM_LOG_E("input params is invaild");
|
||||
CM_LOG_E("input params is invalid");
|
||||
return CMR_ERROR_INVALID_ARGUMENT;
|
||||
}
|
||||
|
||||
@ -373,7 +373,7 @@ static int32_t CmTraversalBackupUidDir(const char *certConfigUidDirPath)
|
||||
static int32_t CmTraversalBackupUserIdDir(const char *certConfigUserIdDirPath)
|
||||
{
|
||||
if (certConfigUserIdDirPath == NULL) {
|
||||
CM_LOG_E("input params is invaild");
|
||||
CM_LOG_E("input params is invalid");
|
||||
return CMR_ERROR_INVALID_ARGUMENT;
|
||||
}
|
||||
|
||||
@ -478,7 +478,7 @@ int32_t CmDeleteProcessInfo(const struct CmContext *context)
|
||||
/* Delete user ca */
|
||||
ret = CmTraversalDir(context, USER_CA_STORE, CM_USER_TRUSTED_STORE);
|
||||
if (ret != CM_SUCCESS) {
|
||||
CM_LOG_E("CmDeleteUserCa faild");
|
||||
CM_LOG_E("CmDeleteUserCa failed");
|
||||
}
|
||||
|
||||
/* Delete user ca backup and config */
|
||||
@ -491,19 +491,19 @@ int32_t CmDeleteProcessInfo(const struct CmContext *context)
|
||||
/* Delete private credentail */
|
||||
ret = CmTraversalDir(context, APP_CA_STORE, CM_PRI_CREDENTIAL_STORE);
|
||||
if (ret != CM_SUCCESS) {
|
||||
CM_LOG_E("CmDeletePrivateCredential faild");
|
||||
CM_LOG_E("CmDeletePrivateCredential failed");
|
||||
}
|
||||
|
||||
/* Delete public credentail */
|
||||
ret = CmTraversalDir(context, CREDNTIAL_STORE, CM_CREDENTIAL_STORE);
|
||||
if (ret != CM_SUCCESS) {
|
||||
CM_LOG_E("CmDeletePublicCredential faild");
|
||||
CM_LOG_E("CmDeletePublicCredential failed");
|
||||
}
|
||||
|
||||
/* Delete system credentail*/
|
||||
ret = CmTraversalDir(context, SYS_CREDNTIAL_STORE, CM_SYS_CREDENTIAL_STORE);
|
||||
if (ret != CM_SUCCESS) {
|
||||
CM_LOG_E("CmDeletePublicCredential faild");
|
||||
CM_LOG_E("CmDeletePublicCredential failed");
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user