OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions
pcy_int.h File Reference

Go to the source code of this file.

Classes

struct  X509_POLICY_DATA_st
 
struct  X509_POLICY_CACHE_st
 
struct  X509_POLICY_NODE_st
 
struct  X509_POLICY_LEVEL_st
 
struct  X509_POLICY_TREE_st
 

Macros

#define POLICY_DATA_FLAG_MAPPED   0x1
 
#define POLICY_DATA_FLAG_MAPPED_ANY   0x2
 
#define POLICY_DATA_FLAG_MAP_MASK   0x3
 
#define POLICY_DATA_FLAG_SHARED_QUALIFIERS   0x4
 
#define POLICY_DATA_FLAG_EXTRA_NODE   0x8
 
#define POLICY_DATA_FLAG_CRITICAL   0x10
 
#define POLICY_FLAG_ANY_POLICY   0x2
 
#define node_data_critical(data)   (data->flags & POLICY_DATA_FLAG_CRITICAL)
 
#define node_critical(node)   node_data_critical(node->data)
 

Typedefs

typedef struct X509_POLICY_DATA_st X509_POLICY_DATA
 

Functions

X509_POLICY_DATApolicy_data_new (POLICYINFO *policy, const ASN1_OBJECT *id, int crit)
 
void policy_data_free (X509_POLICY_DATA *data)
 
X509_POLICY_DATApolicy_cache_find_data (const X509_POLICY_CACHE *cache, const ASN1_OBJECT *id)
 
int policy_cache_set_mapping (X509 *x, POLICY_MAPPINGS *maps)
 
 STACK_OF (X509_POLICY_NODE)*policy_node_cmp_new(void)
 
void policy_cache_init (void)
 
void policy_cache_free (X509_POLICY_CACHE *cache)
 
X509_POLICY_NODElevel_find_node (const X509_POLICY_LEVEL *level, const X509_POLICY_NODE *parent, const ASN1_OBJECT *id)
 
X509_POLICY_NODEtree_find_sk (STACK_OF(X509_POLICY_NODE)*sk, const ASN1_OBJECT *id)
 
X509_POLICY_NODElevel_add_node (X509_POLICY_LEVEL *level, const X509_POLICY_DATA *data, X509_POLICY_NODE *parent, X509_POLICY_TREE *tree)
 
void policy_node_free (X509_POLICY_NODE *node)
 
int policy_node_match (const X509_POLICY_LEVEL *lvl, const X509_POLICY_NODE *node, const ASN1_OBJECT *oid)
 
const X509_POLICY_CACHEpolicy_cache_set (X509 *x)
 

Macro Definition Documentation

#define node_critical (   node)    node_data_critical(node->data)

Definition at line 178 of file pcy_int.h.

#define node_data_critical (   data)    (data->flags & POLICY_DATA_FLAG_CRITICAL)

Definition at line 177 of file pcy_int.h.

#define POLICY_DATA_FLAG_CRITICAL   0x10

Definition at line 109 of file pcy_int.h.

#define POLICY_DATA_FLAG_EXTRA_NODE   0x8

Definition at line 105 of file pcy_int.h.

#define POLICY_DATA_FLAG_MAP_MASK   0x3

Definition at line 97 of file pcy_int.h.

#define POLICY_DATA_FLAG_MAPPED   0x1

Definition at line 87 of file pcy_int.h.

#define POLICY_DATA_FLAG_MAPPED_ANY   0x2

Definition at line 93 of file pcy_int.h.

#define POLICY_DATA_FLAG_SHARED_QUALIFIERS   0x4

Definition at line 101 of file pcy_int.h.

#define POLICY_FLAG_ANY_POLICY   0x2

Definition at line 173 of file pcy_int.h.

Typedef Documentation

Definition at line 60 of file pcy_int.h.

Function Documentation

X509_POLICY_NODE* level_add_node ( X509_POLICY_LEVEL level,
const X509_POLICY_DATA data,
X509_POLICY_NODE parent,
X509_POLICY_TREE tree 
)

Definition at line 112 of file pcy_node.c.

X509_POLICY_NODE* level_find_node ( const X509_POLICY_LEVEL level,
const X509_POLICY_NODE parent,
const ASN1_OBJECT id 
)

Definition at line 94 of file pcy_node.c.

X509_POLICY_DATA* policy_cache_find_data ( const X509_POLICY_CACHE cache,
const ASN1_OBJECT id 
)

Definition at line 260 of file pcy_cache.c.

void policy_cache_free ( X509_POLICY_CACHE cache)

Definition at line 235 of file pcy_cache.c.

void policy_cache_init ( void  )
const X509_POLICY_CACHE* policy_cache_set ( X509 x)

Definition at line 246 of file pcy_cache.c.

int policy_cache_set_mapping ( X509 x,
POLICY_MAPPINGS *  maps 
)

Definition at line 69 of file pcy_map.c.

void policy_data_free ( X509_POLICY_DATA data)

Definition at line 67 of file pcy_data.c.

X509_POLICY_DATA* policy_data_new ( POLICYINFO policy,
const ASN1_OBJECT id,
int  crit 
)

Definition at line 85 of file pcy_data.c.

void policy_node_free ( X509_POLICY_NODE node)

Definition at line 165 of file pcy_node.c.

int policy_node_match ( const X509_POLICY_LEVEL lvl,
const X509_POLICY_NODE node,
const ASN1_OBJECT oid 
)

Definition at line 174 of file pcy_node.c.

STACK_OF ( X509_POLICY_NODE  )

Definition at line 85 of file pcy_lib.c.

X509_POLICY_NODE* tree_find_sk ( STACK_OF(X509_POLICY_NODE)*  sk,
const ASN1_OBJECT id 
)

Definition at line 76 of file pcy_node.c.