Commit Graph

48 Commits

Author SHA1 Message Date
Pau Espin 7dd8376c8f Bump version: 0.9.29.1-42b1 → 0.9.30
Change-Id: I5e4817c04a980d099c146f977adf6f15f7bd56b0
2018-05-03 18:23:35 +02:00
Pau Espin 42b18e2bb8 configure.ac: Use git-version-gen to set VERSION
We updated to 0.9.29 tag, but configure.ac was locked to 0.9.28, which
means release 0.9.29 is going to generated an old version and thus is
broken. A new release will follow this commit.

Change-Id: I8e1665f21d1bc76922423cabad3df72a2502f559
2018-05-03 18:21:05 +02:00
Pau Espin 671fef29c1 Bump version: 0.9.28 → 0.9.29
Change-Id: Ib7cc5d297496b7f7235145602f98d6aef614e531
2018-05-03 17:18:02 +02:00
Pau Espin 10d1ab4936 debian/changelog: Set previous versions to unstable
Otherwise make rlease overwrittes the latest UNRELEASED one.

Change-Id: Ic6a9b1d6c7724b15c69e780d562007b22af141e6
2018-05-03 17:17:36 +02:00
Pau Espin 96ef99e700 build: Support make release target
Change-Id: I04b9ff47f55df0e19d8e93530fb6ccf8bdb0660b
2018-05-03 17:15:26 +02:00
Pau Espin 2745372f00 .gitignore: add compile
Change-Id: I27a8663cc48ca7a76fb1cdf4ad103a854febc812
2018-05-03 17:12:10 +02:00
Neels Hofmeyr 202022eaa9 jenkins.sh: use --enable-werror configure flag, not CFLAGS
Change-Id: I4791c6a32d983869692df36172f93adee819debb
2018-03-05 20:50:26 +01:00
Neels Hofmeyr 6e152f2582 configure: add --enable-werror
Provide a sane means of adding the -Werror compiler flag.

Currently, some of our jenkins.sh add -Werror by passing 'CFLAGS="-Werror"',
but that actually *overwrites* all the other CFLAGS we might want to have set.

Maintain these exceptions from -Werror:
a) deprecation (allow upstream to mark deprecation without breaking builds);
b) "#warning" pragmas (allow to remind ourselves of errors without breaking
   builds)

As a last configure step before generating the output files, print the complete
CFLAGS and CPPFLAGS by means of AC_MSG_RESULT.

Change-Id: Ibcc8238584a585434b39a046cd2d7e18ddaf7f8c
2018-03-05 20:40:21 +01:00
Neels Hofmeyr bd2173796d add --enable-sanitize config option
Change-Id: I8f641c4bce361dcef5d8c149b8b81b21f12cbadf
2017-11-17 02:05:32 +01:00
Neels Hofmeyr 0a43310182 jenkins: use osmo-clean-workspace.sh before and after build
See osmo-ci change I2409b2928b4d7ebbd6c005097d4ad7337307dd93 for rationale.

Depends: I2409b2928b4d7ebbd6c005097d4ad7337307dd93
Change-Id: If5d252dc679e47a8375361d0ff278b7b98768f26
2017-10-28 16:21:02 +00:00
Neels Hofmeyr d5ee1ed734 jenkins: add missing set -e to catch build errors
Change-Id: I9f6b015b09c60c18d213dde5bbdcfc527096a10f
2017-10-28 15:40:50 +00:00
Neels Hofmeyr 551e9c94b3 fix compiler warning: drop dead code from BIT_STRING_fromBuf()
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-28 15:09:05 +00:00
Harald Welte 0e1a6450a4 link libasn1c against libmath, don't ask users to do it
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-28 13:58:23 +02:00
Harald Welte a4d72b02e2 Sync debian package version (0.9.28) with acversion
All of this code is from asn1c 0.9.28, so let's make sure
autoconf + debian packaging agree on the version numbering

Change-Id: Ie8dc8f5df7123d4bf7579f6f4e84b7cc33d49607
2017-10-27 20:09:16 +00:00
Harald Welte 8d9147a764 Fix compiler warning
/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-10-27 22:05:31 +02:00
Harald Welte b7c145daa4 Fix compiler warning
In file included from asn1helpers.c:14:0:
../include/asn1c/asn1helpers.h: In function ‘OCTET_STRING_noalloc’:
../include/asn1c/asn1helpers.h:26:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  s->buf = str;
         ^

Change-Id: Ie2fefe710090de779137c36b98239ef4a097b6dd
2017-10-27 22:05:13 +02:00
Harald Welte aaae8c7649 debian/copyright: Code in this repository is under BSD-2-Clause
The license is not a 3-clause BSD, but a 2-clause BSD.  Couldn't
find any trace to a 3rd clause anywhere.

Change-Id: I4f908ce4f670e062e6808ac7966d0e52bfe6b4f9
2017-08-14 06:15:31 +00:00
Harald Welte c8512b1510 Re-license asn1helper.c under identical license as upstream
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
2017-08-14 06:14:38 +00:00
Harald Welte f1b77d9b58 add contrib/jenkins.sh script for jenkins build testing
Change-Id: I22fc707814e87b50e956d3b4fda6e5e31f0b62a7
2017-08-14 08:12:41 +02:00
Alexander Couzens bce896fadb add /debian to build a package
debian files need a release so start with release 0.1.0

Change-Id: I135d975b84027d51cb1dc534e04dd314bbd20289
2017-08-12 04:16:44 +02:00
Alexander Couzens 4151e593e1 add .gitreview to support git review plugin
Change-Id: Ia197da1614a8cbec5f177368ca9e25946059c68a
2017-08-08 13:56:42 +02:00
Harald Welte 20d668cbd3 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:05:34 +02:00
Harald Welte c867ddeb30 fix APER encoding of integer (backport from openairinterface)
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-30 17:39:04 +02:00
Holger Hans Peter Freyther f3c3049e75 misc: Replace libosmocore with talloc
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-04-05 16:43:39 +02:00
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