AgeCommit message (Collapse)AuthorFilesLines
2016-07-06aper fix for decoding constrained integer with lower boundary3G_2016_09aper-prefix-onto-upstreamHarald Welte1-12/+21
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-06automake: automake 1.11.1 does not have this macro, ignore it thenHolger Hans Peter Freyther1-1/+1
2016-07-06prefixing of generated types using a ASN1C_PREFIX environment variableHarald Welte3-8/+39
When generating code for multiple ASN.1 syntaxes that have clashing names, we need to add a prefix in order to prevent clashes in the global C symbol namespace. Using the ASN1C_PREFIX environment variable and this patch serves as a work-around to that. All non-basic type names as well as references to that type and source code + header file names will be pre-fixed accordingly.
2016-07-06Fix a bug in asn1c PER code when skipping unknown extensionroux1-1/+1
Basically when skiping an unknown extension, asn1c did read 24 bits per 24 bits and later on failed if the remaining bits (up to 23) were superior to 8. The patch reads 1 bit per 1 bit. (imported from openairinterface5g/openair2/RRC/LITE/MESSAGES/asn1c/asn1cpatch.p0)
2016-07-06fix APER encoding of integer (backport from openairinterface)Harald Welte1-5/+22
The number of bytes used by an APER encoded integer depends on its actually encoded value, not on the maximum value that could be possibly encoded. The old code would e.g. always use 24 bits if the maximum encoded value would require 24 bits. To give an example RANAP MaxBitrate (INTEER 1 .. 16000000) value 64000 was previously encoded as "80 00 f9 ff", while it is now the correct representation "40 f9 ff". Thanks to Dieter Spaar for detecting this problem in the Osmo-IUH generated RANAP output, and thanks to openairinterface for fixing the bug in their code (sadly not contributed to upstream asn1c, though).
2016-07-06APER: Fix encoding of INTEGER with lower_bound != 0Harald Welte1-7/+8
When encoding an INTEGER, we need to subtract the lower bound before encoding the value. This is specified in Clause 10.5.7.x of X.691. The decoder already does this correct, but the encoder was wrong.
2016-07-06skeletons: Fix compiler warnings introduced by Eurecom aper patchHarald Welte2-15/+20
... some of which is related to the recent 'constification' of mainline asn1c.
2016-07-06skeletons: Print member's name in CHOICE printSylvain Munaut1-5/+3
Sometimes, if the choice is a null or integer or ... it's not easy to know what has really been selected without the choice member name. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2016-07-06skeletons: Add verbose pretty print for enumerated typesSylvain Munaut2-1/+29
This is just much easier to read when reading the text dumps.
2016-07-06aper: fixup after portHarald Welte1-2/+4
2016-07-06Support automake-1.15Harald Welte1-1/+4
Without this, autoreconf with automake-1.15 fails due to the "-Werror"
2016-07-06port/merge Eurecom APER support from OPENAIRMMEHarald Welte63-48/+2761
Eurecom has developed APER support for asn1c as part of the OPENAIRMME softare (a LTE MME). This is too important to let it bit-rout out of asn1c. Let's forward-port and merge it.
2016-07-03oops; fixed argument substitutionvlm/masterLev Walkin1-1/+1
2016-07-03checked with shellcheckLev Walkin1-18/+18
2016-07-02_BSD_SOURCE moved to a more global locationLev Walkin2-4/+4
2016-07-02_BSD_SOURCE might be defined in unber.cLev Walkin1-0/+2
2016-07-02avoid too much verbosityLev Walkin1-2/+2
2016-07-02avoid shifting negative valueLev Walkin1-1/+1
2016-07-02unlock snprintf on some systemsLev Walkin1-0/+1
2016-07-02make distcheck works nowLev Walkin1-38/+38
2016-07-02ignore autogenerated m4 stuffLev Walkin1-0/+1
2016-07-02working better with new automake test suite driverLev Walkin3-15/+68
2016-07-02alloca.h is not universally availableLev Walkin2-1/+5
2016-03-14try to move it around for travisLev Walkin1-1/+1
2016-03-14EMIT_ASN_DEBUG is in skeletons flagsLev Walkin1-1/+2
2016-03-14leave only skeleton flagsLev Walkin1-1/+1
2016-03-14explicit stdio for snprintfLev Walkin1-0/+1
2016-03-14check-src has its own extra_distLev Walkin3-2/+7
2016-03-14ignore makefilesLev Walkin1-24/+1
2016-03-14DBL_TRUE_MIN is C11, make it portableLev Walkin1-0/+5
2016-03-14alloca.h for alloca (c89)Lev Walkin1-0/+1
2016-03-14tests code uses C99Lev Walkin1-0/+2
2016-03-14more verbose buildsLev Walkin1-2/+2
2016-03-14undo skeletons hierarchy detectionLev Walkin1-12/+5
2016-03-14try to fetch timegm from the environmentLev Walkin1-1/+4
2016-03-14Makefile is part of distributionLev Walkin1-0/+3
2016-03-14more explicit test specLev Walkin3-3/+4
2016-03-14infer skeletons levelLev Walkin1-6/+13
2016-03-14go one dir deeper, still, if possibleLev Walkin1-3/+1
2016-03-14another attempt at travis debugLev Walkin1-1/+1
2016-03-14do not use reserved identifiers, contdLev Walkin60-655/+656
2016-03-14do not use reserved identifiersLev Walkin37-115/+115
2016-03-14run autoupdateLev Walkin1-7/+7
2016-03-14fixed https://github.com/vlm/asn1c/issues/78Lev Walkin1-2/+2
2016-03-14no dereference before checkLev Walkin2-6/+8
2016-03-14error values check from printf, fprintf, fwriteLev Walkin2-215/+250
2016-03-14more diagnostics if memory failsLev Walkin1-0/+1
2016-03-14removed superfluous check before freeLev Walkin2-4/+2
2016-03-14removed unneeded check before free()Lev Walkin8-18/+10
2016-03-13another attempt at travis debugLev Walkin2-2/+2