/base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/ |
H A D | hks_storage_file_lock.c | 35 static HksStorageFileLock *g_lockListFirst = NULL; 36 static HksStorageFileLock *g_lockListLast = NULL; 37 static HksMutex *g_lockListLock = NULL; 41 if (lock == NULL) { in FreeFileLock() 47 lock->path = NULL; in FreeFileLock() 52 lock->lock = NULL; in FreeFileLock() 60 if (g_lockListFirst == NULL) { in ClearLockList() 65 HksStorageFileLock *temp = NULL; in ClearLockList() 66 while (iter != NULL) { in ClearLockList() 72 g_lockListFirst = NULL; in ClearLockList() [all...] |
/base/security/crypto_framework/plugin/openssl_plugin/common/src/ |
H A D | rsa_openssl_common.c | 23 if (tmp == NULL) { in DuplicateRsaPriKeyForSpec() 25 return NULL; in DuplicateRsaPriKeyForSpec() 27 const BIGNUM *n = NULL; in DuplicateRsaPriKeyForSpec() 28 const BIGNUM *e = NULL; in DuplicateRsaPriKeyForSpec() 29 const BIGNUM *d = NULL; in DuplicateRsaPriKeyForSpec() 31 if (n == NULL || e == NULL || d == NULL) { in DuplicateRsaPriKeyForSpec() 34 return NULL; in DuplicateRsaPriKeyForSpec() 39 if (dupN == NULL || dup in DuplicateRsaPriKeyForSpec() [all...] |
/base/startup/init/interfaces/innerkits/fs_manager/ |
H A D | fstab.c | 48 static char *g_fscryptPolicy = NULL; 67 BEGET_CHECK_RETURN_VALUE(flagBuffer != NULL && *flagBuffer != '\0', 0); // No valid flags. in ConvertFlags() 72 BEGET_CHECK_RETURN_VALUE(vector != NULL && flagCount != 0, 0); in ConvertFlags() 86 if (fstab == NULL || item == NULL) { in AddToFstab() 89 if (fstab->tail == NULL) { in AddToFstab() 100 if (item != NULL) { in ReleaseFstabItem() 101 if (item->deviceName != NULL) { in ReleaseFstabItem() 103 item->deviceName = NULL; in ReleaseFstabItem() 106 if (item->mountPoint != NULL) { in ReleaseFstabItem() [all...] |
/base/security/device_auth/test/unittest/deviceauth/source/ |
H A D | json_utils_mock.c | 73 if (jsonStr == NULL) { in CreateJsonFromString() 74 return NULL; in CreateJsonFromString() 77 return NULL; in CreateJsonFromString() 85 return NULL; in CreateJson() 93 return NULL; in CreateJsonArray() 100 if (jsonObj == NULL) { in DuplicateJson() 101 return NULL; in DuplicateJson() 104 return NULL; in DuplicateJson() 116 if (jsonObj == NULL || key == NULL) { in DeleteItemFromJson() [all...] |
/base/security/device_auth/common_lib/impl/src/ |
H A D | json_utils.c | 48 if (jsonStr == NULL) {
in CreateJsonFromString() 49 return NULL;
in CreateJsonFromString() 54 return NULL;
in CreateJsonFromString() 71 if (jsonObj == NULL) {
in DuplicateJson() 72 return NULL;
in DuplicateJson() 84 if (jsonObj == NULL || key == NULL) {
in DeleteItemFromJson() 92 if (jsonObj == NULL || key == NULL) {
in DeleteAllItemExceptOne() 97 CJson *nextItem = NULL;
in DeleteAllItemExceptOne() [all...] |
/base/security/device_security_level/services/dslm/ |
H A D | dslm_msg_utils.c | 35 uint8_t *credBase64Str = NULL; in GenerateSecInfoResponseJson() 36 uint8_t *out = NULL; in GenerateSecInfoResponseJson() 38 DslmJsonHandle head = DslmCreateJson(NULL); in GenerateSecInfoResponseJson() 39 if (head == NULL) { in GenerateSecInfoResponseJson() 40 return NULL; in GenerateSecInfoResponseJson() 43 DslmJsonHandle body = DslmCreateJson(NULL); in GenerateSecInfoResponseJson() 44 if (body == NULL) { in GenerateSecInfoResponseJson() 46 return NULL; in GenerateSecInfoResponseJson() 62 // it is ok when credBase64Str is NULL in GenerateSecInfoResponseJson() 66 if (head != NULL) { in GenerateSecInfoResponseJson() [all...] |
/base/security/device_security_level/baselib/utils/src/ |
H A D | utils_json.c | 28 cJSON *root = NULL; in DslmCreateJson() 30 if (data != NULL) { in DslmCreateJson() 40 if (handle != NULL) { in DslmDestroyJson() 49 if (handle == NULL) { in DslmGetJsonFieldInt() 53 if (field == NULL) { in DslmGetJsonFieldInt() 57 cJSON *objValue = NULL; in DslmGetJsonFieldInt() 61 if (objValue == NULL) { in DslmGetJsonFieldInt() 75 if (handle == NULL || field == NULL || array == NULL) { in DslmGetJsonFieldIntArray() [all...] |
/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/src/ |
H A D | cJSON.c | 37 void* g_handle = NULL; 48 if (g_handle != NULL) { in GetHandle() 62 return NULL; in cJSON_GetObjectItem() 65 if (g_handle == NULL) { in cJSON_GetObjectItem() 66 return NULL; in cJSON_GetObjectItem() 70 if (func == NULL) { in cJSON_GetObjectItem() 71 return NULL; in cJSON_GetObjectItem() 80 if (g_handle == NULL) { in cJSON_IsNumber() 85 if (func == NULL) { in cJSON_IsNumber() 98 if (g_handle == NULL) { in cJSON_IsString() [all...] |
/base/security/device_auth/frameworks/deviceauth_lite/source/struct/ |
H A D | key_agreement_version.c | 28 if (sub_ver != NULL) { in split_ver() 29 cur_ver->first = strtoul(sub_ver, NULL, HC_VERSION_DEC); /* first */ in split_ver() 31 sub_ver = strtok_s(NULL, ".", &next); in split_ver() 32 if (sub_ver != NULL) { in split_ver() 33 cur_ver->second = strtoul(sub_ver, NULL, HC_VERSION_DEC); /* second */ in split_ver() 35 sub_ver = strtok_s(NULL, ".", &next); in split_ver() 36 if (sub_ver != NULL) { in split_ver() 37 cur_ver->third = strtoul(sub_ver, NULL, HC_VERSION_DEC); /* third */ in split_ver() 44 if (str_cur_ver == NULL) { in parse_version() 47 char *sub_cur_ver = NULL; in parse_version() [all...] |
/base/security/huks/test/unittest/huks_lite_test/liteos_m_adapter/ |
H A D | hks_others_test.c | 65 int32_t ret = HksGetKeyParamSetForDe(NULL, NULL, NULL); in LITE_TEST_CASE() 76 int32_t ret = HksGetKeyInfoListForDe(NULL, NULL, NULL); in LITE_TEST_CASE() 87 int32_t ret = HksAttestKeyForDe(NULL, NULL, NULL); in LITE_TEST_CASE() 98 int32_t ret = HksGetCertificateChain(NULL, NUL in LITE_TEST_CASE() [all...] |
/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/ |
H A D | hks_others_test.cpp | 63 int32_t ret = HksGetKeyParamSetForDe(NULL, NULL, NULL); in HWTEST_F() 74 int32_t ret = HksGetKeyInfoListForDe(NULL, NULL, NULL); in HWTEST_F() 85 int32_t ret = HksAttestKeyForDe(NULL, NULL, NULL); in HWTEST_F() 96 int32_t ret = HksGetCertificateChain(NULL, NUL in HWTEST_F() [all...] |
/base/startup/init/interfaces/innerkits/syspara/ |
H A D | parameter.c | 31 BEGET_CHECK(!(key == NULL || value == NULL), return EC_INVALID); in WaitParameter() 39 BEGET_CHECK(key != NULL, return (uint32_t)(-1)); in FindParameter() 58 if (name == NULL) { in GetParameterName() 71 if (value == NULL) { in GetParameterValue() 85 if ((key == NULL) || (value == NULL)) { in GetParameter() 94 if ((key == NULL) || (value == NULL)) { in SetParameter() 110 static const char *productType = NULL; in GetDeviceType() [all...] |
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/src/ |
H A D | cipher_aes_common.c | 25 if (params == NULL) { in GetIv() 26 return NULL; in GetIv() 35 if (params == NULL) { in GetIvLen() 44 if (params == NULL) { in GetCcmTagLen() 54 if (params == NULL) { in GetCcmTag() 55 return NULL; in GetCcmTag() 64 if (data == NULL || *data == NULL) { in FreeCipherData() 67 if ((*data)->ctx != NULL) { in FreeCipherData() 69 (*data)->ctx = NULL; in FreeCipherData() [all...] |
/base/startup/init/services/sandbox/ |
H A D | sandbox.c | 115 BEGET_ERROR_CHECK(item != NULL, return 0, "Invalid parameter."); in GetSandboxMountFlags() 117 BEGET_CHECK(str != NULL, return 0); in GetSandboxMountFlags() 128 if (list == NULL) { in FreeSandboxMountInfo() 132 if (info == NULL) { in FreeSandboxMountInfo() 135 if (info->source != NULL) { in FreeSandboxMountInfo() 137 info->source = NULL; in FreeSandboxMountInfo() 139 if (info->target != NULL) { in FreeSandboxMountInfo() 141 info->target = NULL; in FreeSandboxMountInfo() 144 info = NULL; in FreeSandboxMountInfo() 150 if (list == NULL) { in FreeSandboxLinkInfo() [all...] |
/base/telephony/ril_adapter/services/vendor/src/ |
H A D | at_support.c | 21 static OnNotify g_onNotifyFunc = NULL; 23 static volatile ResponseInfo *g_response = NULL; 24 static volatile const char *g_smsPdu = NULL; 26 static volatile const char *g_prefix = NULL; 32 static void (*g_onTimeout)(void) = NULL; 33 static void (*g_atnUnusual)(void) = NULL; 34 static void (*g_atWatch)(void) = NULL; 60 ret = pthread_create(&g_reader, &t, (void *(*)(void *))ReaderLoop, NULL); in ATStartReadLoop() 71 if (g_atnUnusual != NULL && g_readerClosed == 0) { in OnReaderClosed() 90 Line *p = NULL; in FreeResponseInfo() [all...] |
/base/security/crypto_framework/frameworks/native/src/ |
H A D | asym_key.c | 68 if (ctx == NULL) { in OH_CryptoAsymKeyGenerator_Create() 77 if ((ctx == NULL) || (ctx->generateKeyPair == NULL) || (keyCtx == NULL)) { in OH_CryptoAsymKeyGenerator_Generate() 80 HcfResult ret = ctx->generateKeyPair((HcfAsyKeyGenerator *)ctx, NULL, (HcfKeyPair **)keyCtx); in OH_CryptoAsymKeyGenerator_Generate() 87 if ((ctx == NULL) || (pubKeyData == NULL && priKeyData == NULL) || (keyCtx == NULL)) { in OH_CryptoAsymKeyGenerator_Convert() 91 const char *priKeyStr = (priKeyData == NULL) in OH_CryptoAsymKeyGenerator_Convert() [all...] |
/base/sensors/sensor_lite/frameworks/src/ |
H A D | sensor_agent_proxy.c | 39 {NULL, NULL}, {NULL, NULL}, {NULL, NULL}, {NULL, NULL}, {NULL, NULL},
[all...] |
/base/security/certificate_framework/frameworks/adapter/v1.0/src/ |
H A D | certificate_openssl_common.c | 58 if (oid == NULL) {
in GetAlgorithmName() 60 return NULL;
in GetAlgorithmName() 70 return NULL;
in GetAlgorithmName() 86 if (data == NULL || outBlob == NULL) {
in DeepCopyDataToBlob() 91 if (tmp == NULL) {
in DeepCopyDataToBlob() 104 if (inBlob == NULL || outBlob == NULL) {
in DeepCopyBlobToBlob() 109 if (tmp == NULL) {
in DeepCopyBlobToBlob() 125 if (exts == NULL) { /* i in CopyExtensionsToBlob() [all...] |
/base/security/huks/frameworks/huks_standard/main/common/src/ |
H A D | hks_errcode_adapter.c | 31 .data = NULL
38 .data = NULL
45 .data = NULL
52 .data = NULL
59 .data = NULL
66 .data = NULL
73 .data = NULL
80 .data = NULL
87 .data = NULL
94 .data = NULL
[all...] |
/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/ |
H A D | ecc_asy_key_generator_openssl.c | 61 BIGNUM *pStd = NULL; in CheckEc224CurveId() 62 BIGNUM *bStd = NULL; in CheckEc224CurveId() 63 BIGNUM *xStd = NULL; in CheckEc224CurveId() 64 BIGNUM *yStd = NULL; in CheckEc224CurveId() 65 pStd = OpensslBin2Bn(g_ecc224CorrectBigP, NID_secp224r1_len, NULL); in CheckEc224CurveId() 66 bStd = OpensslBin2Bn(g_ecc224CorrectBigB, NID_secp224r1_len, NULL); in CheckEc224CurveId() 67 xStd = OpensslBin2Bn(g_ecc224CorrectBigGX, NID_secp224r1_len, NULL); in CheckEc224CurveId() 68 yStd = OpensslBin2Bn(g_ecc224CorrectBigGY, NID_secp224r1_len, NULL); in CheckEc224CurveId() 69 if ((pStd == NULL) || (bStd == NULL) || (xSt in CheckEc224CurveId() [all...] |
/base/security/device_auth/services/frameworks/src/plugin_adapter/ext_part/ |
H A D | ext_part_proxy.c | 25 static ExtPart *g_extPart = NULL; 31 while (current != NULL) { in ParsePlugins() 32 if (current->plugin == NULL) { in ParsePlugins() 38 SetAccountLifecyclePlugin(NULL, (AccountLifecyleExtPlug *)(current->plugin)); in ParsePlugins() 41 SetAccountAuthPlugin(NULL, (AccountAuthExtPlug *)(current->plugin)); in ParsePlugins() 54 if (pluginProxy == NULL || pluginProxy->initExtPartFunc == NULL || pluginProxy->getPluginListFunc == NULL || in AddExtPlugin() 55 pluginProxy->destroyExtPartFunc == NULL) { in AddExtPlugin() 60 if (g_extPart == NULL) { in AddExtPlugin() [all...] |
/base/startup/init/services/utils/ |
H A D | init_utils.c | 76 INIT_CHECK_RETURN_VALUE(name != NULL, -1);
in DecodeUid() 86 if (p == NULL) {
in DecodeUid() 99 INIT_CHECK_RETURN_VALUE(name != NULL, -1);
in DecodeGid() 109 if (data != NULL) {
in DecodeGid() 112 while ((data = getgrent()) != NULL) {
in DecodeGid() 113 if ((data->gr_name != NULL) && (strcmp(data->gr_name, name) == 0)) {
in DecodeGid() 128 char *buffer = NULL;
in ReadFileToBuf() 129 FILE *fd = NULL;
in ReadFileToBuf() 131 INIT_CHECK_RETURN_VALUE(configFile != NULL && *configFile != '\0', NULL);
in ReadFileToBuf() [all...] |
/base/security/certificate_framework/frameworks/common/v1.0/src/ |
H A D | cf_blob.c | 25 if (blob == NULL) { in CfBlobFree() 30 *blob = NULL; in CfBlobFree() 35 if ((blob == NULL) || (blob->data == NULL)) { in CfBlobDataFree() 39 blob->data = NULL; in CfBlobDataFree() 45 if ((blob == NULL) || (blob->data == NULL)) { in CfBlobDataClearAndFree() 51 blob->data = NULL; in CfBlobDataClearAndFree() 57 if ((encodingBlob == NULL) || (encodingBlob->data == NULL)) { in CfEncodingBlobDataFree() [all...] |
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/ |
H A D | hks_others_test.cpp | 62 int32_t ret = HksGetKeyParamSetForDe(NULL, NULL, NULL); in HWTEST_F() 73 int32_t ret = HksGetKeyInfoListForDe(NULL, NULL, NULL); in HWTEST_F() 84 int32_t ret = HksGetCertificateChain(NULL, NULL, NULL); in HWTEST_F() 95 int32_t ret = HksWrapKey(NULL, NUL in HWTEST_F() [all...] |
/base/security/crypto_framework/common/src/ |
H A D | asy_key_params.c | 50 if (spec == NULL) { in FreeDsaCommParamsSpec() 54 spec->base.algName = NULL; in FreeDsaCommParamsSpec() 56 spec->p.data = NULL; in FreeDsaCommParamsSpec() 58 spec->q.data = NULL; in FreeDsaCommParamsSpec() 60 spec->g.data = NULL; in FreeDsaCommParamsSpec() 65 if (spec == NULL) { in FreeDhCommParamsSpec() 69 spec->base.algName = NULL; in FreeDhCommParamsSpec() 71 spec->p.data = NULL; in FreeDhCommParamsSpec() 73 spec->g.data = NULL; in FreeDhCommParamsSpec() 84 if (spec == NULL) { in DestroyDsaPubKeySpec() [all...] |