diff options
author | Lev Walkin <vlm@lionet.info> | 2005-11-26 11:25:14 +0000 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2005-11-26 11:25:14 +0000 |
commit | 59b176ee355b3e82e6a8649b164c187c7a17a28f (patch) | |
tree | 6d864f02cd16eb75f4ae6e40199d1879d8363152 /skeletons/constr_TYPE.h | |
parent | 708530582f5ba965fb596c3e189eec23c52337d9 (diff) |
upgrade: PER related changes
Diffstat (limited to 'skeletons/constr_TYPE.h')
-rw-r--r-- | skeletons/constr_TYPE.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/skeletons/constr_TYPE.h b/skeletons/constr_TYPE.h index 90b6578c..37d21f6d 100644 --- a/skeletons/constr_TYPE.h +++ b/skeletons/constr_TYPE.h @@ -1,5 +1,6 @@ /*- - * Copyright (c) 2003, 2004 Lev Walkin <vlm@lionet.info>. All rights reserved. + * Copyright (c) 2003, 2004, 2005 Lev Walkin <vlm@lionet.info>. + * All rights reserved. * Redistribution and modifications are permitted subject to BSD license. */ /* @@ -38,6 +39,7 @@ typedef struct asn_struct_ctx_s { #include <der_encoder.h> /* Distinguished Encoding Rules encoder */ #include <xer_decoder.h> /* Decoder of XER (XML, text) */ #include <xer_encoder.h> /* Encoder into XER (XML, text) */ +#include <per_decoder.h> /* Packet Encoding Rules decoder */ #include <constraints.h> /* Subtype constraints support */ /* @@ -91,6 +93,7 @@ typedef struct asn_TYPE_descriptor_s { der_type_encoder_f *der_encoder; /* Canonical DER encoder */ xer_type_decoder_f *xer_decoder; /* Generic XER decoder */ xer_type_encoder_f *xer_encoder; /* [Canonical] XER encoder */ + per_type_decoder_f *uper_decoder; /* Unaligned PER decoder */ /*********************************************************************** * Internally useful members. Not to be used by applications directly. * @@ -105,6 +108,8 @@ typedef struct asn_TYPE_descriptor_s { ber_tlv_tag_t *all_tags;/* Every tag for BER/containment */ int all_tags_count; /* Number of tags */ + asn_per_constraints_t *per_constraints; /* PER compiled constraints */ + /* * An ASN.1 production type members (members of SEQUENCE, SET, CHOICE). */ @@ -135,6 +140,8 @@ typedef struct asn_TYPE_member_s { int tag_mode; /* IMPLICIT/no/EXPLICIT tag at current level */ asn_TYPE_descriptor_t *type; /* Member type descriptor */ asn_constr_check_f *memb_constraints; /* Constraints validator */ + asn_per_constraints_t *per_constraints; /* PER compiled constraints */ + int (*default_value)(void **sptr); /* DEFAULT <value> */ char *name; /* ASN.1 identifier of the element */ } asn_TYPE_member_t; |