asn1c/skeletons
Harald Welte b9b7c9e54d aper fix for decoding constrained integer with lower boundary
When decoding a constrained integer with a lower boundary, we need
to make sure the lower bound is added after decoding the raw offset
inside the range.

Before this change, RANAP_CauseMisc_unspecified_failure (115) would be
encoded as 2 (115 - 113 = 2), but would be decoded as 2, rather than
113+2 = 115.

Code for this was taken from
openairinterface5g/openair3/S1AP/MESSAGES/ASN1/asn1cpatch.p0 which
unfortunately doesn't carry much of a revision history :/
2016-07-06 17:08:57 +02:00
..
standard-modules Makefile.am is not needed here 2014-10-12 18:55:22 -07:00
tests DBL_TRUE_MIN is C11, make it portable 2016-03-14 04:21:26 -07:00
ANY.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
ANY.h port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
BIT_STRING.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
BIT_STRING.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
BMPString.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
BMPString.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
BOOLEAN.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
BOOLEAN.h port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
ENUMERATED.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
ENUMERATED.h port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
GeneralString.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
GeneralString.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
GeneralizedTime.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
GeneralizedTime.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
GraphicString.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
GraphicString.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
IA5String.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
IA5String.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
INTEGER.c aper fix for decoding constrained integer with lower boundary 2016-07-06 17:08:57 +02:00
INTEGER.h port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
ISO646String.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
ISO646String.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
Makefile.am leave only skeleton flags 2016-03-14 05:11:57 -07:00
NULL.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
NULL.h port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
NativeEnumerated.c skeletons: Add verbose pretty print for enumerated types 2016-07-06 17:05:48 +02:00
NativeEnumerated.h skeletons: Add verbose pretty print for enumerated types 2016-07-06 17:05:48 +02:00
NativeInteger.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
NativeInteger.h port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
NativeReal.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
NativeReal.h port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
NumericString.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
NumericString.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
OBJECT_IDENTIFIER.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
OBJECT_IDENTIFIER.h Declare the type descriptor and input buffer args of some functions as const. 2014-07-23 16:06:01 -07:00
OCTET_STRING.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
OCTET_STRING.h port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
ObjectDescriptor.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
ObjectDescriptor.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
PrintableString.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
PrintableString.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
README upgrade: PER related changes 2005-11-26 11:25:14 +00:00
REAL.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
REAL.h port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
RELATIVE-OID.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
RELATIVE-OID.h Declare the type descriptor and input buffer args of some functions as const. 2014-07-23 16:06:01 -07:00
T61String.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
T61String.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
TeletexString.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
TeletexString.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
UTCTime.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
UTCTime.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
UTF8String.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
UTF8String.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
UniversalString.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
UniversalString.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
VideotexString.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
VideotexString.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
VisibleString.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
VisibleString.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
asn_SEQUENCE_OF.c XER support 2004-10-20 15:50:55 +00:00
asn_SEQUENCE_OF.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
asn_SET_OF.c clarity 2006-09-13 04:02:00 +00:00
asn_SET_OF.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
asn_application.h do not use reserved identifiers 2016-03-14 02:57:34 -07:00
asn_codecs.h do not use reserved identifiers, contd 2016-03-14 03:08:19 -07:00
asn_codecs_prim.c do not use reserved identifiers, contd 2016-03-14 03:08:19 -07:00
asn_codecs_prim.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
asn_internal.h port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
asn_system.h _BSD_SOURCE moved to a more global location 2016-07-02 23:51:32 -07:00
ber_decoder.c do not use reserved identifiers, contd 2016-03-14 03:08:19 -07:00
ber_decoder.h some helpful hint 2007-05-30 17:42:00 +00:00
ber_tlv_length.c do not use reserved identifiers, contd 2016-03-14 03:08:19 -07:00
ber_tlv_length.h added stack control to PER 2005-12-07 05:46:03 +00:00
ber_tlv_tag.c added const qualifier 2005-03-10 18:52:02 +00:00
ber_tlv_tag.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
constr_CHOICE.c skeletons: Print member's name in CHOICE print 2016-07-06 17:05:48 +02:00
constr_CHOICE.h port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
constr_SEQUENCE.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
constr_SEQUENCE.h port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
constr_SEQUENCE_OF.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
constr_SEQUENCE_OF.h port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
constr_SET.c skeletons: Fix compiler warnings introduced by Eurecom aper patch 2016-07-06 17:05:48 +02:00
constr_SET.h port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
constr_SET_OF.c skeletons: Fix compiler warnings introduced by Eurecom aper patch 2016-07-06 17:05:48 +02:00
constr_SET_OF.h port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
constr_TYPE.c Declare the type descriptor and input buffer args of some functions as const. 2014-07-23 16:06:01 -07:00
constr_TYPE.h port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
constraints.c *** empty log message *** 2006-07-13 11:19:01 +00:00
constraints.h do not use reserved identifiers, contd 2016-03-14 03:08:19 -07:00
converter-sample.c do not use reserved identifiers, contd 2016-03-14 03:08:19 -07:00
der_encoder.c Declare most internal, constant tables as const, particularly the 2014-07-28 12:16:01 -07:00
der_encoder.h some helpful hint 2007-05-30 17:42:00 +00:00
file-dependencies shared stuff split off to per_opentype.[ch] 2007-06-27 04:09:37 +00:00
per_decoder.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
per_decoder.h port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
per_encoder.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
per_encoder.h port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
per_opentype.c Fix a bug in asn1c PER code when skipping unknown extension 2016-07-06 17:05:48 +02:00
per_opentype.h port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
per_support.c port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
per_support.h port/merge Eurecom APER support from OPENAIRMME 2016-07-06 17:03:12 +02:00
xer_decoder.c do not use reserved identifiers, contd 2016-03-14 03:08:19 -07:00
xer_decoder.h remove compiler warnings 2016-01-24 19:23:02 -08:00
xer_encoder.c do not use reserved identifiers, contd 2016-03-14 03:08:19 -07:00
xer_encoder.h human readability implied, confusing 2006-03-17 02:40:30 +00:00
xer_support.c Avoid an unnecessary table lookup and its accompanying table (final_chunk_type[]). 2014-07-30 12:30:34 -07:00
xer_support.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00

README

This directory contains encoder/decoder code for various encoding rules
(PER, DER, BER, XER) that work with the tables constructed by the compiler.
The compiler itself does not generate much code. It creates parsing tables
and then copies (links) over these files which contain generic codecs.