STACK_OF(X509_POLICY_NODES) **pnodes)
STACK_OF(X509_POLICY_NODE) **pnodes)
static int tree_calculate_authority_set(X509_POLICY_TREE *tree,					STACK_OF(X509_POLICY_NODES) **pnodes)	{	X509_POLICY_LEVEL *curr;	X509_POLICY_NODE *node, *anyptr;	STACK_OF(X509_POLICY_NODES) **addnodes;	int i, j;	curr = tree->levels + tree->nlevel - 1;	/* If last level contains anyPolicy set is anyPolicy */	if (curr->anyPolicy)		{		if (!tree_add_auth_node(&tree->auth_policies, curr->anyPolicy))			return 0;		addnodes = pnodes;		}	else		/* Add policies to authority set */		addnodes = &tree->auth_policies;	curr = tree->levels;	for (i = 1; i < tree->nlevel; i++)		{		/* If no anyPolicy node on this this level it can't		 * appear on lower levels so end search.		 */		if (!(anyptr = curr->anyPolicy))			break;		curr++;		for (j = 0; j < sk_X509_POLICY_NODE_num(curr->nodes); j++)			{			node = sk_X509_POLICY_NODE_value(curr->nodes, j);			if ((node->parent == anyptr)				&& !tree_add_auth_node(addnodes, node))					return 0;			}		}	if (addnodes == pnodes)		return 2;	*pnodes = tree->auth_policies;	return 1;	}