Commit Graph

74 Commits

Author SHA1 Message Date
Neels Hofmeyr de48e262e2 remove config.h include from asn_system.h 2016-02-16 12:58:10 +01:00
Neels Hofmeyr 578ecbbf62 cosmetic: cast to avoid compiler warning 2016-02-16 12:23:23 +01:00
Daniel Willmann 95a112f75a Add helper functions for uint32_t in octet strings 2016-02-16 12:10:36 +01:00
Harald Welte 2d4f2bd91c import ans1helpers.[ch] (originally part of osmo-iuh) 2016-01-03 17:14:54 +01:00
Harald Welte 667d758c92 APER: Fix encoding of INTEGER with lower_bound != 0
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-19 13:37:02 +01:00
Harald Welte a37b06d735 add '--enable-debug' configure option to build with EMIT_ASN_DEBUG
... 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-12-18 15:38:42 +01:00
Harald Welte 41b85d5597 update to asn1c aper branch commit 6e00cbce7304a6972e82a12bb5fa82e41fa541be
which is closes to Lev Walkins master 62913d8b8e1eb96d74315ff748475ca818b69752
2015-08-31 09:35:13 +02:00
Harald Welte f6b9173b02 fix autoconf/automake warnings 2015-08-31 09:25:52 +02:00
Harald Welte c904c936d7 link against libmath for 'ilogb()' 2012-09-15 19:31:48 +02:00
Harald Welte a68b3a37c5 use include/osmocom/core instead of include/osmocore 2011-10-14 20:35:00 +02:00
Holger Hans Peter Freyther 3674df68fd build: libosmo-asn1-map assumes that asn1c is in the includedir
Add asn1c/ to the CFLAGS reported here as we have code that is
including the asn1c without the prefix. I assume this is a temporary
fix.
2010-07-24 20:38:57 +08:00
Sylvain Munaut ee1a5c9ae3 per_support: Fix bit error in encoding process
Thanks to Dieter Spaar for finding and fixing this !
2010-07-20 00:11:06 +02:00
Sylvain Munaut 64fdc4cb06 src: Print member's name in CHOICE print
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>
2010-07-20 00:10:57 +02:00
Sylvain Munaut b9d517e755 src: Add verbose pretty print for enumerated types
This is just much easier to read when reading the text
dumps.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-20 00:10:38 +02:00
Harald Welte 6264d3d94b we have to replace calloc with talloc_zero_size() to ensure initialization 2010-07-20 00:05:07 +02:00
Harald Welte fa034009a1 Convert libasn1c to use talloc from libosmocore 2010-07-20 00:05:07 +02:00
Harald Welte ec0e217b06 Update to asn1c official repository svn trunk r1409 2010-07-20 00:03:44 +02:00
Harald Welte b1e3ee7531 add dummy 'm4/.dummy' file to make autoreconf happy 2010-07-09 15:46:03 +02:00
Harald Welte 96afdfdc64 Remove converter-sample.c, as it is not part of the runtime library 2010-06-13 09:38:56 +02:00
Harald Welte 7ee9a775b8 add .gitignore file 2010-06-13 07:44:07 +02:00
Harald Welte 8e37e02a3e add COPYING with original licenes 2010-06-12 19:24:52 +02:00
Harald Welte 98cb83615d move header files to 'include' directory and install them 2010-06-12 19:15:51 +02:00
Harald Welte bdff5e6309 Add autotools/pkgconfig magic 2010-06-12 19:05:23 +02:00
Harald Welte 92c45f3390 initial import of /usr/share/asn1c/*.[ch] skeleton files 2010-06-12 18:59:38 +02:00