From f1f22c334f73f491061e7eaa3e0a5d99b30c842a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 6 Dec 2005 19:59:52 +0000 Subject: [PATCH] Add support for part of the Constraint-s git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16357 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/asn1/symbol.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/asn1/symbol.h b/lib/asn1/symbol.h index ba5ea84ea..c856cb839 100644 --- a/lib/asn1/symbol.h +++ b/lib/asn1/symbol.h @@ -111,6 +111,10 @@ struct range { int max; }; +enum ctype { CT_CONTENTS, CT_USER } ; + +struct constraint_spec; + struct type { Typetype type; struct memhead *members; @@ -118,10 +122,21 @@ struct type { struct type *subtype; struct tagtype tag; struct range *range; + struct constraint_spec *constraint; }; typedef struct type Type; +struct constraint_spec { + enum ctype ctype; + union { + struct { + Type *type; + struct value *encoding; + } content; + } u; +}; + struct objid { const char *label; int value;