blob: 96164e18306abb3432bd17a9cf8184763533c95b [file] [log] [blame]
Lev Walkinc6cac8e2016-03-14 02:57:07 -07001#ifndef ASN1FIX_CONSTRAINT_H
2#define ASN1FIX_CONSTRAINT_H
Lev Walkinb45e0672004-08-18 05:42:05 +00003
4/*
5 * Resolve referenced values inside constraints.
6 */
Lev Walkinc0e03b92017-08-22 01:48:23 -07007int asn1constraint_resolve(
8 arg_t *arg, asn1p_constraint_t *ct,
9 asn1p_expr_type_e topmost_parent_expression_type,
10 enum asn1p_constraint_type_e effective_constraint_type);
Lev Walkinb45e0672004-08-18 05:42:05 +000011
12/*
13 * Collect all subtype constraints from all parents of this type and
14 * the type itself, forming a full constraint structure.
15 * Honors the constraints extensibility rules (46.8)
16 * and does other useful transformations.
17 */
18int asn1constraint_pullup(arg_t *arg);
19
Lev Walkinc6cac8e2016-03-14 02:57:07 -070020#endif /* ASN1FIX_CONSTRAINT_H */