diff options
author | Lev Walkin <vlm@lionet.info> | 2005-12-20 22:34:55 +0000 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2005-12-20 22:34:55 +0000 |
commit | ce676dd513a40e2c7d057c31328711d3909a8e7d (patch) | |
tree | 3e0b8a3ff93fac209db1dba84f14a5cf44f84c37 /skeletons | |
parent | 1d5f0f24aebabd983d82349651eb8ba3f4138329 (diff) |
effective bits is not 0
Diffstat (limited to 'skeletons')
-rw-r--r-- | skeletons/OCTET_STRING.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/skeletons/OCTET_STRING.c b/skeletons/OCTET_STRING.c index d60d5bdf..4287f22c 100644 --- a/skeletons/OCTET_STRING.c +++ b/skeletons/OCTET_STRING.c @@ -20,7 +20,7 @@ static asn_OCTET_STRING_specifics_t asn_DEF_OCTET_STRING_specs = { 0 }; static asn_per_constraint_t asn_DEF_OCTET_STRING_constraint = { - APC_SEMI_CONSTRAINED, -1, 0, 0, 0 + APC_SEMI_CONSTRAINED, -1, -1, 0, 0 }; asn_TYPE_descriptor_t asn_DEF_OCTET_STRING = { "OCTET STRING", /* Canonical name */ @@ -1224,6 +1224,10 @@ OCTET_STRING_decode_uper(asn_codec_ctx_t *opt_codec_ctx, if(!st) RETURN(RC_FAIL); } + ASN_DEBUG("PER Decoding %s %ld .. %ld bits %d", + ct->flags & APC_EXTENSIBLE ? "extensible" : "fixed", + ct->lower_bound, ct->upper_bound, ct->effective_bits); + if(ct->flags & APC_EXTENSIBLE) { int inext = per_get_few_bits(pd, 1); if(inext < 0) RETURN(RC_FAIL); |