⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asn1p_constr.h

📁 RSA加密/解密算法源码 asn1c-0.9.12
💻 H
字号:
/* * Type constraints. */#ifndef	ASN1_PARSER_CONSTRAINT_H#define	ASN1_PARSER_CONSTRAINT_Htypedef struct asn1p_constraint_s {	enum asn1p_constraint_type_e {		ACT_INVALID,		/* for assertions */		/*		 * Constraint elements.		 */		ACT_EL_VALUE,		/* 123, "A", T (elementary value) */		ACT_EL_RANGE,		/* 1..2 (elementary range) */		ACT_EL_LLRANGE,		/* 1<..2 (elementary range) */		ACT_EL_RLRANGE,		/* 1..<2 (elementary range) */		ACT_EL_ULRANGE,		/* 1<..<2 (elementary range) */		ACT_EL_EXT,		/* ... (extensibility mark) */		/*		 * Constraint types.		 */		ACT_CT_SIZE,		/* SIZE constraint type */		ACT_CT_FROM,		/* FROM constraint type */		ACT_CT_WCOMP,		/* WITH COMPONENT */		ACT_CT_WCOMPS,		/* WITH COMPONENTS */		/*		 * Arrays of constraints.		 */		ACT_CA_SET,		/* A set of constraints: (c1)(c2) */		ACT_CA_CRC,		/* Comp. relation c-t: ({a})({@b}) */		ACT_CA_CSV,		/* Comma-separated constraints array */		ACT_CA_UNI,		/* UNION (|) */		ACT_CA_INT,		/* INTERSECTION (^) */		ACT_CA_EXC,		/* EXCEPT */	} type;	enum asn1p_constr_pres_e {		ACPRES_DEFAULT,		ACPRES_PRESENT,		ACPRES_ABSENT,		ACPRES_OPTIONAL,	} presence;	/*	 * A single values.	 */	asn1p_value_t *value;	asn1p_value_t *range_start;	asn1p_value_t *range_stop;	/*	 * A collection of constraint elements.	 */	struct asn1p_constraint_s **elements;	unsigned int el_count;	/* Number of meaningful elements */	unsigned int el_size;	/* Size of the allocated (elements) */	int _lineno;	/* Position in a source file */} asn1p_constraint_t;/* Human-readable constraint type description */char *asn1p_constraint_type2str(enum asn1p_constraint_type_e);/* * Constructors and a recursive destructor. */asn1p_constraint_t *asn1p_constraint_new(int _lineno);void asn1p_constraint_free(asn1p_constraint_t *);/* * Clone the constraint and all its children. */asn1p_constraint_t *asn1p_constraint_clone(asn1p_constraint_t *source_to_clone);/* * Insert additional element into the element array of a (to) constraint. */int asn1p_constraint_insert(asn1p_constraint_t *into, asn1p_constraint_t *what);#endif	/* ASN1_PARSER_CONSTRAINT_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -