Skip to content

Commit 2eae3c4

Browse files
committed
Merge branch 'develop'
2 parents 5755645 + b2bbebd commit 2eae3c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+524
-581
lines changed
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: OpenLI standard build test
2+
on:
3+
push:
4+
branches:
5+
- develop
6+
pull_request:
7+
branches:
8+
- master
9+
- develop
10+
workflow_dispatch:
11+
12+
jobs:
13+
pre_job:
14+
name: Prerequisite checks
15+
runs-on: ubuntu-latest
16+
outputs:
17+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
18+
steps:
19+
- id: skip_check
20+
uses: fkirc/skip-duplicate-actions@master
21+
with:
22+
concurrent_skipping: 'same_content'
23+
cancel_others: 'true'
24+
25+
run-build-test-debian:
26+
name: Run tests ${{ matrix.target }}
27+
needs: pre_job
28+
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
29+
runs-on: ubuntu-latest
30+
container:
31+
image : ${{ matrix.target }}
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
arch:
36+
- amd64
37+
target:
38+
- "debian:latest"
39+
- "ubuntu:latest"
40+
steps:
41+
- name: Checkout repo
42+
uses: actions/checkout@v4
43+
- name: Install prereq packages
44+
run: |
45+
./debpkg-setup.sh
46+
mk-build-deps -i -r -t 'apt-get -f -y --force-yes'
47+
- name: Set up build
48+
run: |
49+
./bootstrap.sh
50+
./configure
51+
- name: Compile
52+
run: make
53+
54+
run-build-test-rpm:
55+
name: Run tests ${{ matrix.target }}
56+
needs: pre_job
57+
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
58+
runs-on: ubuntu-latest
59+
container:
60+
image : ${{ matrix.target }}
61+
strategy:
62+
fail-fast: false
63+
matrix:
64+
arch:
65+
- amd64
66+
target:
67+
- "rockylinux:9"
68+
- "rockylinux:8"
69+
steps:
70+
- name: Checkout repo
71+
uses: actions/checkout@v4
72+
- name: Install prereq packages
73+
run: |
74+
./rpmpkg-setup.sh ${{ matrix.target }}
75+
- name: Set up build
76+
run: |
77+
./bootstrap.sh
78+
./configure
79+
- name: Compile
80+
run: make
81+
82+

.github/workflows/rpm-build.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818
target:
1919
- "rockylinux:8"
2020
- "rockylinux:9"
21-
- "fedora:39"
22-
- "fedora:38"
2321

2422
steps:
2523
- name: Checkout repo
@@ -53,8 +51,6 @@ jobs:
5351
target:
5452
- "rockylinux:8"
5553
- "rockylinux:9"
56-
- "fedora:39"
57-
- "fedora:38"
5854
needs: build
5955
steps:
6056
- name: Set environment variables for download
@@ -103,8 +99,6 @@ jobs:
10399
target:
104100
- "rockylinux:8"
105101
- "rockylinux:9"
106-
- "fedora:39"
107-
- "fedora:38"
108102
needs: test
109103
steps:
110104
- name: Set environment variables for download

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
OpenLI -- open source ETSI-compliant Lawful Intercept software
22

3-
Version: 1.1.6
3+
Version: 1.1.7
44

55
---------------------------------------------------------------------------
66

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Super primitive configure script
22

3-
AC_INIT([openli],[1.1.6],[shane@alcock.co.nz])
3+
AC_INIT([openli],[1.1.7],[shane@alcock.co.nz])
44

55
AM_INIT_AUTOMAKE([subdir-objects])
66
AC_CONFIG_SRCDIR(src/collector/collector.c)

debian/changelog

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
openli (1.1.7-1) unstable; urgency=medium
2+
3+
* Collector: fix file descriptor leak caused by timers in SMS worker
4+
threads.
5+
* Collector: fix bug where a forwarder thread would be unable to exit
6+
if the collector is trying to shut down due to an error.
7+
* Collector: fix another race condition that can cause a collector to
8+
hang when it is being halted.
9+
* Collector: VoIP sync thread now recognises more SIP keep alive
10+
payloads (including eXoSIP keep alives) so will no longer complain
11+
about invalid SIP payload when these KAs are observed.
12+
* Collector: fix segfault that can occur if an IP data session is
13+
assigned to more than 5 IP addresses.
14+
* Collector: fix segfault in VoIP sync thread if the expiry timer for
15+
a completed call cannot be properly created (e.g. if we run out of
16+
file descriptors).
17+
18+
-- Shane Alcock <salcock@searchlight.nz> Tue, 23 Jul 2024 09:53:36 +1200
19+
120
openli (1.1.6-1) unstable; urgency=medium
221

322
* Fix incorrect encoding of userLocationInformation field.

rpm/openli.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: openli
2-
Version: 1.1.6
2+
Version: 1.1.7
33
Release: 1%{?dist}
44
Summary: Software for performing ETSI-compliant lawful intercept
55

@@ -283,6 +283,9 @@ fi
283283

284284

285285
%changelog
286+
* Tue Jul 23 2024 Shane Alcock <salcock@searchlight.nz> - 1.1.7-1
287+
- Updated for 1.1.7 release
288+
286289
* Mon Jul 1 2024 Shane Alcock <salcock@searchlight.nz> - 1.1.6-1
287290
- Updated for 1.1.6 release
288291

src/Makefile.am

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ openliprovisioner_SOURCES=provisioner/provisioner.c provisioner/provisioner.h \
2020

2121
openliprovisioner_LDFLAGS = -lpthread @PROVISIONER_LIBS@
2222
openliprovisioner_LDADD = @ADD_LIBS@
23-
openliprovisioner_CFLAGS=-I$(abs_top_srcdir)/extlib/libpatricia/ @PROVISIONER_CFLAGS@
23+
openliprovisioner_CFLAGS=-I$(abs_top_srcdir)/extlib/libpatricia/ @PROVISIONER_CFLAGS@ -Werror -Wall -Wextra
2424

2525
dist_sbin_SCRIPTS += provisioner/authsetup/openli-prov-authsetup.sh \
2626
provisioner/authsetup/openli-prov-adduser.sh
@@ -78,7 +78,7 @@ openlicollector_SOURCES=collector/collector.c configparser.c configparser.h \
7878

7979
openlicollector_LDADD = @ADD_LIBS@ -L$(abs_top_srcdir)/extlib/libpatricia/.libs
8080
openlicollector_LDFLAGS=-lpthread -lpatricia @COLLECTOR_LIBS@
81-
openlicollector_CFLAGS=-I$(abs_top_srcdir)/extlib/libpatricia/ -Icollector/ -I$(builddir)
81+
openlicollector_CFLAGS=-I$(abs_top_srcdir)/extlib/libpatricia/ -Icollector/ -I$(builddir) -Werror -Wall -Wextra
8282

8383
endif
8484

@@ -105,6 +105,6 @@ openlimediator_SOURCES=mediator/mediator.c mediator/mediator.h \
105105
coreserver.c coreserver.h
106106
openlimediator_LDADD = @ADD_LIBS@
107107
openlimediator_LDFLAGS=-lpthread @MEDIATOR_LIBS@
108-
openlimediator_CFLAGS=-I$(abs_top_srcdir)/extlib/libpatricia/
108+
openlimediator_CFLAGS=-I$(abs_top_srcdir)/extlib/libpatricia/ -Werror -Wall -Wextra
109109
endif
110110

src/collector/accessplugins/gtp.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,10 @@ static void gtp_destroy_plugin_data(access_plugin_t *p) {
345345
}
346346

347347
static void gtp_uncouple_parsed_data(access_plugin_t *p) {
348-
348+
(void)p;
349349
}
350350

351-
static void gtp_destroy_parsed_data(access_plugin_t *p, void *parsed) {
351+
static void gtp_destroy_parsed_data(access_plugin_t *p UNUSED, void *parsed) {
352352

353353
gtp_parsed_t *gparsed = (gtp_parsed_t *)parsed;
354354

@@ -1332,7 +1332,7 @@ static inline access_session_t *find_matched_session(access_plugin_t *p,
13321332
}
13331333

13341334
static access_session_t *gtp_update_session_state(access_plugin_t *p,
1335-
void *parsed, void *plugindata, access_session_t **sesslist,
1335+
void *parsed, void *plugindata UNUSED, access_session_t **sesslist,
13361336
session_state_t *oldstate, session_state_t *newstate,
13371337
access_action_t *action) {
13381338

@@ -1819,9 +1819,9 @@ static int gtp_create_context_activation_iri(gtp_parsed_t *gparsed,
18191819
return 0;
18201820
}
18211821

1822-
static int gtp_generate_iri_data(access_plugin_t *p, void *parseddata,
1822+
static int gtp_generate_iri_data(access_plugin_t *p UNUSED, void *parseddata,
18231823
etsili_generic_t **params, etsili_iri_type_t *iritype,
1824-
etsili_generic_freelist_t *freelist, int iteration) {
1824+
etsili_generic_freelist_t *freelist, int iteration UNUSED) {
18251825

18261826
gtp_parsed_t *gparsed = (gtp_parsed_t *)parseddata;
18271827

@@ -1893,7 +1893,7 @@ static int gtp_generate_iri_from_session(access_plugin_t *p,
18931893
return 0;
18941894
}
18951895

1896-
static uint8_t *gtp_get_ip_contents(access_plugin_t *p, void *parseddata,
1896+
static uint8_t *gtp_get_ip_contents(access_plugin_t *p UNUSED, void *parseddata,
18971897
uint16_t *iplen, int iteration) {
18981898

18991899
gtp_parsed_t *gparsed = (gtp_parsed_t *)parseddata;
@@ -1925,7 +1925,7 @@ static uint8_t *gtp_get_ip_contents(access_plugin_t *p, void *parseddata,
19251925

19261926
}
19271927

1928-
static void gtp_destroy_session_data(access_plugin_t *p,
1928+
static void gtp_destroy_session_data(access_plugin_t *p UNUSED,
19291929
access_session_t *sess) {
19301930

19311931
if (sess->sessionid) {
@@ -1934,7 +1934,8 @@ static void gtp_destroy_session_data(access_plugin_t *p,
19341934

19351935
}
19361936

1937-
static uint32_t gtp_get_packet_sequence(access_plugin_t *p, void *parseddata) {
1937+
static uint32_t gtp_get_packet_sequence(access_plugin_t *p UNUSED,
1938+
void *parseddata) {
19381939

19391940
gtp_parsed_t *gparsed = (gtp_parsed_t *)parseddata;
19401941

0 commit comments

Comments
 (0)