Lines Matching refs:level
43 X509_POLICY_NODE *ossl_policy_level_find_node(const X509_POLICY_LEVEL *level, in ossl_policy_level_find_node() argument
49 for (i = 0; i < sk_X509_POLICY_NODE_num(level->nodes); i++) { in ossl_policy_level_find_node()
50 node = sk_X509_POLICY_NODE_value(level->nodes, i); in ossl_policy_level_find_node()
59 X509_POLICY_NODE *ossl_policy_level_add_node(X509_POLICY_LEVEL *level, in ossl_policy_level_add_node() argument
76 if (level != NULL) { in ossl_policy_level_add_node()
78 if (level->anyPolicy) in ossl_policy_level_add_node()
80 level->anyPolicy = node; in ossl_policy_level_add_node()
83 if (level->nodes == NULL) in ossl_policy_level_add_node()
84 level->nodes = ossl_policy_node_cmp_new(); in ossl_policy_level_add_node()
85 if (level->nodes == NULL) { in ossl_policy_level_add_node()
89 if (!sk_X509_POLICY_NODE_push(level->nodes, node)) { in ossl_policy_level_add_node()
116 if (level != NULL) { in ossl_policy_level_add_node()
117 if (level->anyPolicy == node) in ossl_policy_level_add_node()
118 level->anyPolicy = NULL; in ossl_policy_level_add_node()
120 (void) sk_X509_POLICY_NODE_pop(level->nodes); in ossl_policy_level_add_node()