path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2019-08-07Fix LIBVERSION not appliedPau Espin Pedrol1-2/+1
Change-Id: I232c2fdcc5e9dc821fbea6e7dc498b6ed5b460a9
2018-05-03Bump version: 0.9.28 → Espin Pedrol1-1/+1
Change-Id: Ib7cc5d297496b7f7235145602f98d6aef614e531
2017-10-28fix compiler warning: drop dead code from BIT_STRING_fromBuf()Neels Hofmeyr1-3/+0
The warning is, on FreeBSD, CC asn1helpers.lo asn1helpers.c:68:10: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare] if (len < 0) ~~~ ^ ~ Change-Id: I80867da697d744d7ef4d70c8f24031f5781fb11a
2017-10-28link libasn1c against libmath, don't ask users to do itHarald Welte1-1/+1
libasn1c is using libm[ath] symbols from REAL.c and hence should be linked using '-lm' to carry a dynamic linker dependency itself. We shouldn't use a pkg-config hack to ask applications to do this on our behalf. Change-Id: Ie107f7252eeed90233468deaef57d3cee36abdf4
2017-10-27Fix compiler warningHarald Welte1-1/+1
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ Change-Id: I442e60413b3bee6d365cd5df672a558d68998670
2017-08-14Re-license asn1helper.c under identical license as upstreamHarald Welte1-13/+2
asn1helpers.c originally existed in the repository of an application (osmo-hnbgw, IIRC), and hence was under AGPLv3. When moving it to this repository, it should have been relicensed but wasn't. The intention was never to "contaminate" (lib)asn1c with AGPLv3 code. Change-Id: I8e714d4c51d771b1eabec7aa06e7daae73f48b15
2016-05-01aper fix for decoding constrained integer with lower boundary3G_2016_09Harald 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-04-30fix 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-04-05misc: Replace libosmocore with tallocHolger Hans Peter Freyther2-10/+14
The libosmocore depedency is used for talloc and OSMO_ASSERT. Reduce the depedencies by using libtalloc directly and replace the ASSERT with a local one (without backtrace support).
2016-02-16cosmetic: cast to avoid compiler warningNeels Hofmeyr1-1/+1
2016-02-16Add helper functions for uint32_t in octet stringsDaniel Willmann1-0/+13
2016-01-03import ans1helpers.[ch] (originally part of osmo-iuh)Harald Welte2-1/+152
2015-12-19APER: 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.
2015-12-18add '--enable-debug' configure option to build with EMIT_ASN_DEBUGHarald Welte2-0/+7
... which in turn causes all the ASN_DEBUG() to be turned into fprintf(stderr, ...) statements, once the user application decides to set 'asn_debug = 1' somewhere in its code. The next step would be to make _ASN_DECODE_FAILED / _ASN_ENCODE_FAILED no longer depend on ASN_DEBUG (which it currently does)
2015-08-31update to asn1c aper branch commit 6e00cbce7304a6972e82a12bb5fa82e41fa541beHarald Welte45-459/+3307
which is closes to Lev Walkins master 62913d8b8e1eb96d74315ff748475ca818b69752
2015-08-31fix autoconf/automake warningsHarald Welte1-1/+1
2010-07-20per_support: Fix bit error in encoding processSylvain Munaut1-1/+2
Thanks to Dieter Spaar for finding and fixing this !
2010-07-20src: 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 <>
2010-07-20src: Add verbose pretty print for enumerated typesSylvain Munaut1-1/+28
This is just much easier to read when reading the text dumps. Signed-off-by: Sylvain Munaut <>
2010-07-20Convert libasn1c to use talloc from libosmocoreHarald Welte2-1/+4
2010-07-20Update to asn1c official repository svn trunk r1409Harald Welte36-356/+1818
2010-06-13Remove converter-sample.c, as it is not part of the runtime libraryHarald Welte2-726/+1
2010-06-12move header files to 'include' directory and install themHarald Welte54-2820/+1
2010-06-12Add autotools/pkgconfig magicHarald Welte1-0/+12
2010-06-12initial import of /usr/share/asn1c/*.[ch] skeleton filesHarald Welte103-0/+18178