Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing support for disabled PER/OER in a couple of skeletons #419

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions skeletons/NativeEnumerated.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ NativeEnumerated_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr,
}
}

#ifdef ASN_DISABLE_OER_SUPPORT

asn_dec_rval_t
NativeEnumerated_decode_uper(const asn_codec_ctx_t *opt_codec_ctx,
const asn_TYPE_descriptor_t *td,
Expand Down Expand Up @@ -224,3 +226,5 @@ NativeEnumerated_encode_uper(const asn_TYPE_descriptor_t *td,
ASN__ENCODED_OK(er);
}

#endif

4 changes: 4 additions & 0 deletions skeletons/constr_CHOICE.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,8 @@ CHOICE_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
ASN__ENCODE_FAILED;
}

#ifndef ASN_DISABLE_PER_SUPPORT

asn_dec_rval_t
CHOICE_decode_uper(const asn_codec_ctx_t *opt_codec_ctx,
const asn_TYPE_descriptor_t *td,
Expand Down Expand Up @@ -1010,6 +1012,8 @@ CHOICE_encode_uper(const asn_TYPE_descriptor_t *td,
}
}

#endif /* ASN_DISABLE_PER_SUPPORT */


int
CHOICE_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
Expand Down
2 changes: 2 additions & 0 deletions skeletons/constr_SET_OF.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ SET_OF__encode_sorted(const asn_TYPE_member_t *elm,
erval = elm->type->op->der_encoder(elm->type, memb_ptr, 0, elm->tag,
_el_addbytes, encoding_el);
break;
#ifndef ASN_DISABLE_PER_SUPPORT
case SOES_CUPER:
erval = uper_encode(elm->type,
elm->encoding_constraints.per_constraints,
Expand All @@ -393,6 +394,7 @@ SET_OF__encode_sorted(const asn_TYPE_member_t *elm,
encoding_el->bits_unused = (8 - extra_bits) & 0x7;
}
break;
#endif
default:
assert(!"Unreachable");
break;
Expand Down