Macros | Functions
pcy_tree.c File Reference
#include <string.h>
#include <openssl/mem.h>
#include <openssl/obj.h>
#include <openssl/stack.h>
#include <openssl/thread.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#include "../internal.h"
#include "../x509/internal.h"
#include "internal.h"
Include dependency graph for pcy_tree.c:

Go to the source code of this file.

Macros

#define tree_print(a, b, c)   /* */
 

Functions

static void exnode_free (X509_POLICY_NODE *node)
 
static int tree_add_auth_node (STACK_OF(X509_POLICY_NODE) **pnodes, X509_POLICY_NODE *pcy)
 
static int tree_add_unmatched (X509_POLICY_LEVEL *curr, const X509_POLICY_CACHE *cache, const ASN1_OBJECT *id, X509_POLICY_NODE *node, X509_POLICY_TREE *tree)
 
static int tree_calculate_authority_set (X509_POLICY_TREE *tree, STACK_OF(X509_POLICY_NODE) **pnodes)
 
static int tree_calculate_user_set (X509_POLICY_TREE *tree, STACK_OF(ASN1_OBJECT) *policy_oids, STACK_OF(X509_POLICY_NODE) *auth_nodes)
 
static int tree_evaluate (X509_POLICY_TREE *tree)
 
static int tree_init (X509_POLICY_TREE **ptree, STACK_OF(X509) *certs, unsigned int flags)
 
static int tree_link_any (X509_POLICY_LEVEL *curr, const X509_POLICY_CACHE *cache, X509_POLICY_TREE *tree)
 
static int tree_link_matching_nodes (X509_POLICY_LEVEL *curr, X509_POLICY_DATA *data)
 
static int tree_link_nodes (X509_POLICY_LEVEL *curr, const X509_POLICY_CACHE *cache)
 
static int tree_link_unmatched (X509_POLICY_LEVEL *curr, const X509_POLICY_CACHE *cache, X509_POLICY_NODE *node, X509_POLICY_TREE *tree)
 
static int tree_prune (X509_POLICY_TREE *tree, X509_POLICY_LEVEL *curr)
 
int X509_policy_check (X509_POLICY_TREE **ptree, int *pexplicit_policy, STACK_OF(X509) *certs, STACK_OF(ASN1_OBJECT) *policy_oids, unsigned int flags)
 
void X509_policy_tree_free (X509_POLICY_TREE *tree)
 

Macro Definition Documentation

◆ tree_print

#define tree_print (   a,
  b,
  c 
)    /* */

Definition at line 136 of file pcy_tree.c.

Function Documentation

◆ exnode_free()

static void exnode_free ( X509_POLICY_NODE node)
static

Definition at line 695 of file pcy_tree.c.

◆ tree_add_auth_node()

static int tree_add_auth_node ( STACK_OF(X509_POLICY_NODE) **  pnodes,
X509_POLICY_NODE pcy 
)
static

Definition at line 540 of file pcy_tree.c.

◆ tree_add_unmatched()

static int tree_add_unmatched ( X509_POLICY_LEVEL curr,
const X509_POLICY_CACHE cache,
const ASN1_OBJECT id,
X509_POLICY_NODE node,
X509_POLICY_TREE tree 
)
static

Definition at line 373 of file pcy_tree.c.

◆ tree_calculate_authority_set()

static int tree_calculate_authority_set ( X509_POLICY_TREE tree,
STACK_OF(X509_POLICY_NODE) **  pnodes 
)
static

Definition at line 568 of file pcy_tree.c.

◆ tree_calculate_user_set()

static int tree_calculate_user_set ( X509_POLICY_TREE tree,
STACK_OF(ASN1_OBJECT) *  policy_oids,
STACK_OF(X509_POLICY_NODE) *  auth_nodes 
)
static

Definition at line 612 of file pcy_tree.c.

◆ tree_evaluate()

static int tree_evaluate ( X509_POLICY_TREE tree)
static

Definition at line 671 of file pcy_tree.c.

◆ tree_init()

static int tree_init ( X509_POLICY_TREE **  ptree,
STACK_OF(X509) *  certs,
unsigned int  flags 
)
static

Definition at line 150 of file pcy_tree.c.

◆ tree_link_any()

static int tree_link_any ( X509_POLICY_LEVEL curr,
const X509_POLICY_CACHE cache,
X509_POLICY_TREE tree 
)
static

Definition at line 435 of file pcy_tree.c.

◆ tree_link_matching_nodes()

static int tree_link_matching_nodes ( X509_POLICY_LEVEL curr,
X509_POLICY_DATA data 
)
static

Definition at line 312 of file pcy_tree.c.

◆ tree_link_nodes()

static int tree_link_nodes ( X509_POLICY_LEVEL curr,
const X509_POLICY_CACHE cache 
)
static

Definition at line 340 of file pcy_tree.c.

◆ tree_link_unmatched()

static int tree_link_unmatched ( X509_POLICY_LEVEL curr,
const X509_POLICY_CACHE cache,
X509_POLICY_NODE node,
X509_POLICY_TREE tree 
)
static

Definition at line 400 of file pcy_tree.c.

◆ tree_prune()

static int tree_prune ( X509_POLICY_TREE tree,
X509_POLICY_LEVEL curr 
)
static

Definition at line 495 of file pcy_tree.c.

◆ X509_policy_check()

int X509_policy_check ( X509_POLICY_TREE **  ptree,
int pexplicit_policy,
STACK_OF(X509) *  certs,
STACK_OF(ASN1_OBJECT) *  policy_oids,
unsigned int  flags 
)

Definition at line 738 of file pcy_tree.c.

◆ X509_policy_tree_free()

void X509_policy_tree_free ( X509_POLICY_TREE tree)

Definition at line 701 of file pcy_tree.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:25