asn1c/skeletons
Harald Welte 1b38a280d9 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-05-01 01:09:11 +02:00
..
standard-modules Makefile.am is not needed here 2014-10-12 18:55:22 -07:00
tests Merge pull request #46 from wiml/constify 2014-10-12 18:30:33 -07:00
ANY.c port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
ANY.h port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
BIT_STRING.c port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +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 2015-08-30 16:33:07 +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 2015-08-30 16:33:07 +02:00
BOOLEAN.h port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
ENUMERATED.c port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
ENUMERATED.h port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
GeneralString.c port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +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 2015-08-30 16:33:07 +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 2015-08-30 16:33:07 +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 2015-08-30 16:33:07 +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-05-01 01:09:11 +02:00
INTEGER.h port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
ISO646String.c port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
ISO646String.h extern "C" used in skeletons 2005-07-24 09:03:44 +00:00
Makefile.am version 0.9.26 2014-09-11 01:28:57 -07:00
NULL.c port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
NULL.h port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
NativeEnumerated.c skeletons: Add verbose pretty print for enumerated types 2015-08-31 08:43:36 +02:00
NativeEnumerated.h skeletons: Add verbose pretty print for enumerated types 2015-08-31 08:43:36 +02:00
NativeInteger.c port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
NativeInteger.h port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
NativeReal.c port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
NativeReal.h port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
NumericString.c port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +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 2015-08-30 16:33:07 +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 2015-08-30 16:33:07 +02:00
OCTET_STRING.h port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
ObjectDescriptor.c port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +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 2015-08-30 16:33:07 +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 2015-08-30 16:33:07 +02:00
REAL.h port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
RELATIVE-OID.c port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +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 2015-08-30 16:33:07 +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 2015-08-30 16:33:07 +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 2015-08-30 16:33:07 +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 2015-08-30 16:33:07 +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 2015-08-30 16:33:07 +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 2015-08-30 16:33:07 +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 2015-08-30 16:33:07 +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 gcc 2.95.x does not like __attribute__ on typedefs 2006-09-15 18:52:36 +00:00
asn_codecs.h allow td to be absent when printing out debug 2013-03-19 16:16:28 -07:00
asn_codecs_prim.c remove warnings 2013-03-25 18:51:51 -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 2015-08-30 16:33:07 +02:00
asn_system.h Fix sys_ntohl macro; it just replicated the low byte instead of reordering bytes 2012-12-01 14:48:22 +04:00
ber_decoder.c fix debug message typo 2013-12-07 10:52:28 -08:00
ber_decoder.h some helpful hint 2007-05-30 17:42:00 +00:00
ber_tlv_length.c early detection 2006-07-27 13:16:51 +00: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 2015-08-31 08:44:20 +02:00
constr_CHOICE.h port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
constr_SEQUENCE.c port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
constr_SEQUENCE.h port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
constr_SEQUENCE_OF.c port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
constr_SEQUENCE_OF.h port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
constr_SET.c skeletons: Fix compiler warnings introduced by Eurecom aper patch 2015-08-31 09:24:42 +02:00
constr_SET.h port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
constr_SET_OF.c skeletons: Fix compiler warnings introduced by Eurecom aper patch 2015-08-31 09:24:42 +02:00
constr_SET_OF.h port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +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 2015-08-30 16:33:07 +02:00
constraints.c *** empty log message *** 2006-07-13 11:19:01 +00:00
constraints.h *** empty log message *** 2006-07-13 11:19:01 +00:00
converter-sample.c make file reading work under windows 2012-10-10 05:55:28 -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 2015-08-30 16:33:07 +02:00
per_decoder.h port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
per_encoder.c port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
per_encoder.h port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
per_opentype.c Fix a bug in asn1c PER code when skipping unknown extension 2016-04-30 17:37:56 +02:00
per_opentype.h port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
per_support.c port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
per_support.h port/merge Eurecom APER support from OPENAIRMME 2015-08-30 16:33:07 +02:00
xer_decoder.c fix: There must be no content in self-terminating <NULL/> tag. 2013-03-16 07:01:42 -07:00
xer_decoder.h fix: There must be no content in self-terminating <NULL/> tag. 2013-03-16 07:01:42 -07:00
xer_encoder.c upgrade: PER related changes 2005-11-26 11:25:14 +00: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.