Home
last modified time | relevance | path

Searched refs:tree (Results 1 - 12 of 12) sorted by relevance

/base/security/certificate_framework/test/unittest/v1.0/src/
H A Dcrypto_x509_certificate_test_part3.cpp397 GENERAL_SUBTREE *tree = reinterpret_cast<GENERAL_SUBTREE *>sk_GENERAL_SUBTREE_new_null(); in HWTEST_F() local
398 EXPECT_NE(tree, nullptr); in HWTEST_F()
399 tree->base = GENERAL_NAME_new(); in HWTEST_F()
400 EXPECT_NE(tree->base, nullptr); in HWTEST_F()
401 tree->base->type = GEN_OTHERNAME; in HWTEST_F()
402 tree->base->d.otherName = OTHERNAME_new(); in HWTEST_F()
406 .WillOnce(Return(tree)) in HWTEST_F()
412 OTHERNAME_free(tree->base->d.otherName); in HWTEST_F()
413 tree->base->d.otherName = nullptr; in HWTEST_F()
414 GENERAL_NAME_free(tree in HWTEST_F()
442 GENERAL_SUBTREE *tree = reinterpret_cast<GENERAL_SUBTREE *>sk_GENERAL_SUBTREE_new_null(); HWTEST_F() local
477 GENERAL_SUBTREE *tree = reinterpret_cast<GENERAL_SUBTREE *>sk_GENERAL_SUBTREE_new_null(); HWTEST_F() local
512 GENERAL_SUBTREE *tree = reinterpret_cast<GENERAL_SUBTREE *>sk_GENERAL_SUBTREE_new_null(); HWTEST_F() local
568 GENERAL_SUBTREE *tree = reinterpret_cast<GENERAL_SUBTREE *>sk_GENERAL_SUBTREE_new_null(); HWTEST_F() local
[all...]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
H A Dcert_manager_status.c39 #define MAX_STATUS_TREE_MALLOC_SIZE (5 * 1024 * 1024) /* max 5M tree file size */
45 /* red-black tree to store disabled certificate file names. */
282 static int32_t LoadTreeStatus(struct RbTree *tree, pthread_rwlock_t *treeLock, uint8_t *buf, uint32_t sz) in LoadTreeStatus() argument
313 rc = RbTreeDecode(tree, DecodeStatus, DecodeFreeStatus, data, dataLen); in LoadTreeStatus()
317 CM_LOG_E("Failed to decode status tree: %d", rc); in LoadTreeStatus()
335 struct RbTree *tree = &g_trees[storeIndex]; in LoadStatus() local
349 rc = LoadTreeStatus(tree, treeLock, buf, sz); in LoadStatus()
357 static int32_t EncodeTree(struct RbTree *tree, uint8_t **bufptr, uint32_t *size) in EncodeTree() argument
360 int32_t rc = RbTreeEncode(tree, EncodeStatus, NULL, &sz); in EncodeTree()
366 CM_LOG_E("invalid encode tree siz in EncodeTree()
404 struct RbTree *tree = &g_trees[storeIndex]; WriteStatus() local
458 struct RbTree *tree = &g_trees[storeIndex]; DestroyTree() local
552 SetCertStatusNode(const struct CmContext *ctx, struct RbTree *tree, struct RbTreeNode *node, const char *name, uint32_t status) SetCertStatusNode() argument
599 SetUserCertStatusNode(const struct CertStatus *valInfo, struct RbTree *tree, struct RbTreeNode *node, const char *name, uint32_t store) SetUserCertStatusNode() argument
678 CertManagerFindMatchedFile(const struct CmContext *context, struct RbTreeNode **treeNode, struct RbTree *tree, struct TreeNode tempPara, const char *fn) CertManagerFindMatchedFile() argument
713 CertManagerStatus(const struct CmContext *context, struct RbTree *tree, struct CertEnableStatus certStatus, uint32_t store, const char *fn) CertManagerStatus() argument
808 struct RbTree *tree = &g_trees[storeIndex]; CertManagerStatusFile() local
[all...]
H A Drbtree.c24 Implementation of a red-black tree, with serialization
373 int32_t RbTreeFindNode(struct RbTreeNode **nodePtr, RbTreeKey key, const struct RbTree *tree) in RbTreeFindNode() argument
375 if (tree == NULL || nodePtr == NULL) { in RbTreeFindNode()
382 struct RbTreeNode *n = tree->root; in RbTreeFindNode()
383 while (n != tree->nil) { in RbTreeFindNode()
/base/powermgr/thermal_manager/application/protector/include/policy/
H A Dthermal_kernel_config_file.h22 #include <libxml/tree.h>
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/
H A Drbtree.h58 int32_t RbTreeFindNode(struct RbTreeNode **nodePtr, RbTreeKey key, const struct RbTree *tree);
/base/powermgr/thermal_manager/services/native/include/thermal_policy/
H A Dthermal_srv_config_parser.h21 #include <libxml/tree.h>
/base/powermgr/thermal_manager/test/unittest/include/
H A Dthermal_config_file_parser.h21 #include <libxml/tree.h>
/base/hiviewdfx/hiview/plugins/freeze_detector/
H A Drule_cluster.h20 #include <libxml/tree.h>
/base/security/certificate_framework/frameworks/adapter/v1.0/src/
H A Dx509_certificate_openssl.c1691 GENERAL_SUBTREE *tree = NULL; in CompareNameConstraintsX509Openssl() local
1692 tree = sk_GENERAL_SUBTREE_value(nc->permittedSubtrees, i); in CompareNameConstraintsX509Openssl()
1693 if (tree != NULL && CompareGN2Blob(tree->base, nameConstraints)) { in CompareNameConstraintsX509Openssl()
1699 GENERAL_SUBTREE *tree = NULL; in CompareNameConstraintsX509Openssl() local
1700 tree = sk_GENERAL_SUBTREE_value(nc->excludedSubtrees, i); in CompareNameConstraintsX509Openssl()
1701 if (tree != NULL && CompareGN2Blob(tree->base, nameConstraints) == true) { in CompareNameConstraintsX509Openssl()
/base/hiviewdfx/hidumper/frameworks/native/include/util/
H A Dconfig_utils.h78 static void ConvertTreeToList(std::vector<std::shared_ptr<DumpCfg>> &tree,
/base/hiviewdfx/hidumper/frameworks/native/src/util/
H A Dconfig_utils.cpp802 void ConfigUtils::ConvertTreeToList(std::vector<std::shared_ptr<DumpCfg>> &tree, in ConvertTreeToList() argument
810 for (auto item : tree) { in ConvertTreeToList()
/base/powermgr/thermal_manager/test/systemtest/src/
H A Dthermal_mgr_system_test.cpp24 #include <libxml/tree.h>

Completed in 12 milliseconds