Commit 0c54f3d0 authored by Lev Walkin's avatar Lev Walkin

more debug

parent 94fc4186
...@@ -85,8 +85,6 @@ oer_fetch_tag(const void *ptr, size_t size, ber_tlv_tag_t *tag_r) { ...@@ -85,8 +85,6 @@ oer_fetch_tag(const void *ptr, size_t size, ber_tlv_tag_t *tag_r) {
if((val & 0x3F) != 0x3F) { if((val & 0x3F) != 0x3F) {
/* #8.7.1 */ /* #8.7.1 */
*tag_r = ((val & 0x3F) << 2) | tclass; *tag_r = ((val & 0x3F) << 2) | tclass;
fprintf(stderr, "byte %02x, tag_r = %d, %s", *(const uint8_t *)ptr,
*tag_r, ber_tlv_tag_string(*tag_r));
return 1; return 1;
} }
...@@ -198,6 +196,7 @@ CHOICE_decode_oer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, ...@@ -198,6 +196,7 @@ CHOICE_decode_oer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
RETURN(RC_FAIL); RETURN(RC_FAIL);
} else { } else {
/* Skip open type extension */ /* Skip open type extension */
ASN_DEBUG("Not implemented skipping open type extension");
RETURN(RC_FAIL); RETURN(RC_FAIL);
} }
} while(0); } while(0);
...@@ -230,8 +229,10 @@ CHOICE_decode_oer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, ...@@ -230,8 +229,10 @@ CHOICE_decode_oer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
/* Set presence to be able to free it properly at any time */ /* Set presence to be able to free it properly at any time */
(void)CHOICE_variant_set_presence(td, st, ctx->step + 1); (void)CHOICE_variant_set_presence(td, st, ctx->step + 1);
if(specs->ext_start <= ctx->step) { if(specs->ext_start >= 0 && specs->ext_start <= ctx->step) {
/* We're in the extensions group. #20.2 requires Open Type */ /* We're in the extensions group. #20.2 requires Open Type */
ASN_DEBUG("Not implemented %s es=%d, edx=%u at %s:%d", td->name,
specs->ext_start, ctx->step, __FILE__, __LINE__);
RETURN(RC_FAIL); RETURN(RC_FAIL);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment