Lines Matching defs:node
74 X509_POLICY_NODE *node, int indent)
77 || !(node->data->flags & POLICY_DATA_FLAG_MAP_MASK))
82 STACK_OF(ASN1_OBJECT) *pset = node->data->expected_policy_set;
100 X509_POLICY_NODE *node;
116 node = sk_X509_POLICY_NODE_value(plev->nodes, i);
117 X509_POLICY_NODE_print(err, node, 2);
118 expected_print(err, plev, node, 2);
119 BIO_printf(err, " Flags: %x\n", node->data->flags);
314 X509_POLICY_NODE *node;
319 node = sk_X509_POLICY_NODE_value(last->nodes, i);
320 if (policy_node_match(last, node, data->valid_policy))
322 if (!level_add_node(curr, data, node, NULL))
350 /* If a node is mapped any it doesn't have a corresponding
352 * However such an identical node would be created
378 X509_POLICY_NODE *node,
383 id = node->data->valid_policy;
384 /* Create a new node with qualifiers from anyPolicy and
385 * id from unmatched node.
387 data = policy_data_new(NULL, id, node_critical(node));
394 if (!level_add_node(curr, data, node, tree))
405 X509_POLICY_NODE *node,
412 || !(node->data->flags & POLICY_DATA_FLAG_MAPPED))
415 if (node->nchild)
417 if (!tree_add_unmatched(curr, cache, NULL, node, tree))
424 STACK_OF(ASN1_OBJECT) *expset = node->data->expected_policy_set;
425 if (node->nchild == sk_ASN1_OBJECT_num(expset))
431 if (level_find_node(curr, node, oid))
433 if (!tree_add_unmatched(curr, cache, oid, node, tree))
449 X509_POLICY_NODE *node;
454 node = sk_X509_POLICY_NODE_value(last->nodes, i);
456 if (!tree_link_unmatched(curr, cache, node, tree))
461 /* Skip any node with any children: we only want unmathced
465 * because each node may have multiple children
467 if (node->nchild)
470 /* Create a new node with qualifiers from anyPolicy and
471 * id from unmatched node.
473 data = policy_data_new(NULL, node->data->valid_policy,
474 node_critical(node));
481 if (!level_add_node(curr, data, node, tree))
508 X509_POLICY_NODE *node;
515 node = sk_X509_POLICY_NODE_value(nodes, i);
517 if (node->data->flags & POLICY_DATA_FLAG_MAP_MASK)
519 node->parent->nchild--;
520 OPENSSL_free(node);
531 node = sk_X509_POLICY_NODE_value(nodes, i);
532 if (node->nchild == 0)
534 node->parent->nchild--;
535 OPENSSL_free(node);
591 X509_POLICY_NODE *node, *anyptr;
610 /* If no anyPolicy node on this this level it can't
618 node = sk_X509_POLICY_NODE_value(curr->nodes, j);
619 if ((node->parent == anyptr)
620 && !tree_add_auth_node(addnodes, node))
638 X509_POLICY_NODE *node;
645 * this will happen if it is a leaf node.
666 node = tree_find_sk(auth_nodes, oid);
667 if (!node)
671 /* Create a new node with policy ID from user set
681 node = level_add_node(NULL, extra, anyPolicy->parent,
690 if (!sk_X509_POLICY_NODE_push(tree->user_policies, node))
722 static void exnode_free(X509_POLICY_NODE *node)
724 if (node->data && (node->data->flags & POLICY_DATA_FLAG_EXTRA_NODE))
725 OPENSSL_free(node);