From 6806d080c0aed27e6da883c0b0733ce5bd55cd42 Mon Sep 17 00:00:00 2001 From: Mouse Date: Sat, 17 Aug 2024 21:58:15 -0400 Subject: [PATCH] Attempt to address range_bits for OCTET_STRING in APER --- skeletons/OCTET_STRING_aper.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/skeletons/OCTET_STRING_aper.c b/skeletons/OCTET_STRING_aper.c index 1f74918ae..f70ea2925 100644 --- a/skeletons/OCTET_STRING_aper.c +++ b/skeletons/OCTET_STRING_aper.c @@ -269,10 +269,8 @@ OCTET_STRING_encode_aper(const asn_TYPE_descriptor_t *td, case ASN_OSUBV_ANY: case ASN_OSUBV_STR: canonical_unit_bits = unit_bits = 8; -/* if(cval->flags & APC_CONSTRAINED) - unit_bits = 8; -*/ + unit_bits = cval->range_bits; bpc = OS__BPC_CHAR; sizeinunits = st->size; break;