Skip to content

Commit 254cc71

Browse files
committed
Merge branch 'next' into agpl_next
# Conflicts: # cmake/modules/FindPolarssl.cmake
2 parents e1d5f40 + ba34570 commit 254cc71

Some content is hidden

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

42 files changed

+270
-255
lines changed

.github/workflows/ccpp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
os: [ubuntu-20.04, ubuntu-18.04]
10+
os: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04]
1111
compiler: [gcc, clang]
1212
steps:
1313
- uses: actions/checkout@v3

.github/workflows/codeql.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ "master" ]
9+
schedule:
10+
- cron: '38 10 * * 2'
11+
12+
jobs:
13+
analyze:
14+
name: Analyze
15+
runs-on: ubuntu-latest
16+
permissions:
17+
actions: read
18+
contents: read
19+
security-events: write
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: [ 'cpp' ]
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v3
29+
30+
- name: Install dependencies
31+
run: |
32+
sudo apt-get install \
33+
build-essential \
34+
cmake \
35+
libfftw3-dev \
36+
libmbedtls-dev \
37+
libpcsclite-dev \
38+
libboost-program-options-dev \
39+
libconfig++-dev \
40+
libsctp-dev \
41+
libuhd-dev \
42+
libzmq3-dev
43+
44+
# Initializes the CodeQL tools for scanning.
45+
- name: Initialize CodeQL
46+
uses: github/codeql-action/init@v2
47+
with:
48+
languages: ${{ matrix.language }}
49+
50+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51+
# If this step fails, then you should remove it and run the build manually (see below)
52+
- name: Autobuild
53+
uses: github/codeql-action/autobuild@v2
54+
55+
# ℹ️ Command-line programs to run using the OS shell.
56+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
57+
58+
# If the Autobuild fails above, remove it and uncomment the following three lines.
59+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
60+
61+
# - run: |
62+
# echo "Run, Build Application using script"
63+
# ./location_of_script_within_repo/buildscript.sh
64+
65+
- name: Perform CodeQL Analysis
66+
uses: github/codeql-action/analyze@v2
67+
with:
68+
category: "/language:${{matrix.language}}"

.lgtm.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

CHANGELOG

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
Change Log for Releases
22
=======================
33

4+
## 22.10
5+
* Fix DL NAS integrity checks in srsUE
6+
* Remove Travis and LGTM as CI platforms
7+
* Remove polarssl as optional dependency (only mbedTLS used and required for security)
8+
* Allow to specify multiple PLMNs in SIB1
9+
* Allow non-blocking S1AP connect and expose various other SCTP options
10+
* Add support to broadcast MAC backoff indicator
11+
* Seperate T300/T301 timer in srsENB
12+
* Fix in eMBMS payload buffer handling
13+
* Fix memleak in NR scheduler
14+
415
## 22.04.1
516
* Various bug fixes in RLC AM and PDCP for NR
617
* Fix crash when UE attempted to reestablish in SA

CMakeLists.txt

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -180,29 +180,17 @@ else(USE_MKL)
180180
endif(USE_MKL)
181181

182182
# Crypto
183-
find_package(Polarssl)
184-
if (POLARSSL_FOUND)
185-
set(SEC_INCLUDE_DIRS "${POLARSSL_INCLUDE_DIRS}")
183+
find_package(MbedTLS REQUIRED)
184+
if (MBEDTLS_FOUND)
185+
set(SEC_INCLUDE_DIRS "${MBEDTLS_INCLUDE_DIRS}")
186186
if(BUILD_STATIC)
187-
set(SEC_LIBRARIES "${POLARSSL_STATIC_LIBRARIES}")
187+
set(SEC_LIBRARIES "${MBEDTLS_STATIC_LIBRARIES}")
188188
else(BUILD_STATIC)
189-
set(SEC_LIBRARIES "${POLARSSL_LIBRARIES}")
189+
set(SEC_LIBRARIES "${MBEDTLS_LIBRARIES}")
190190
endif(BUILD_STATIC)
191-
add_definitions(-DHAVE_POLARSSL)
192-
else(POLARSSL_FOUND)
193-
find_package(MbedTLS REQUIRED)
194-
if (MBEDTLS_FOUND)
195-
set(SEC_INCLUDE_DIRS "${MBEDTLS_INCLUDE_DIRS}")
196-
if(BUILD_STATIC)
197-
set(SEC_LIBRARIES "${MBEDTLS_STATIC_LIBRARIES}")
198-
else(BUILD_STATIC)
199-
set(SEC_LIBRARIES "${MBEDTLS_LIBRARIES}")
200-
endif(BUILD_STATIC)
201-
add_definitions(-DHAVE_MBEDTLS)
202-
else(MBEDTLS_FOUND)
203-
message(FATAL_ERROR "Either PolarSSL or mbedTLS are required to build srsRAN")
204-
endif (MBEDTLS_FOUND)
205-
endif(POLARSSL_FOUND)
191+
else(MBEDTLS_FOUND)
192+
message(FATAL_ERROR "mbedTLS is required to build srsRAN")
193+
endif (MBEDTLS_FOUND)
206194

207195
# Hard-SIM support
208196
if(ENABLE_HARDSIM)

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
srsRAN
22
======
33

4-
[![Build Status](https://github.com/srsran/srsRAN/actions/workflows/ccpp.yml/badge.svg?branch=master)](https://github.com/srsran/srsRAN/actions)
5-
[![Build Status](https://app.travis-ci.com/srsran/srsRAN.svg?branch=master)](https://app.travis-ci.com/github/srsran/srsRAN)
6-
[![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/srsran/srsRAN.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/srsran/srsRAN/context:cpp)
4+
[![Build Status](https://github.com/srsran/srsRAN/actions/workflows/ccpp.yml/badge.svg?branch=master)](https://github.com/srsran/srsRAN/actions/workflows/ccpp.yml)
5+
[![CodeQL](https://github.com/srsran/srsRAN/actions/workflows/codeql.yml/badge.svg?branch=master)](https://github.com/srsran/srsRAN/actions/workflows/codeql.yml)
76
[![Coverity](https://scan.coverity.com/projects/23045/badge.svg)](https://scan.coverity.com/projects/srsran)
87

98
srsRAN is a 4G/5G software radio suite developed by [SRS](http://www.srs.io).

cmake/modules/FindPolarssl.cmake

Lines changed: 0 additions & 73 deletions
This file was deleted.

cmake/modules/SRSRANVersion.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#
2020

2121
SET(SRSRAN_VERSION_MAJOR 22)
22-
SET(SRSRAN_VERSION_MINOR 04)
23-
SET(SRSRAN_VERSION_PATCH 1)
22+
SET(SRSRAN_VERSION_MINOR 10)
23+
SET(SRSRAN_VERSION_PATCH 0)
2424
SET(SRSRAN_VERSION_STRING "${SRSRAN_VERSION_MAJOR}.${SRSRAN_VERSION_MINOR}.${SRSRAN_VERSION_PATCH}")
2525
SET(SRSRAN_SOVERSION 0)

lib/include/srsran/common/ssl.h

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,6 @@
2222
#ifndef SRSRAN_SSL_H
2323
#define SRSRAN_SSL_H
2424

25-
#ifdef HAVE_POLARSSL
26-
27-
#include "polarssl/aes.h"
28-
#include "polarssl/sha256.h"
29-
30-
inline void sha256(const unsigned char* key,
31-
size_t keylen,
32-
const unsigned char* input,
33-
size_t ilen,
34-
unsigned char output[32],
35-
int is224)
36-
{
37-
sha256_hmac(key, keylen, input, ilen, output, is224);
38-
}
39-
40-
#endif // HAVE_POLARSSL
41-
42-
#ifdef HAVE_MBEDTLS
43-
4425
#include "mbedtls/aes.h"
4526
#include "mbedtls/md.h"
4627

@@ -80,6 +61,4 @@ inline void sha256(const unsigned char* key,
8061
mbedtls_md_hmac(mbedtls_md_info_from_type(MBEDTLS_MD_SHA256), key, keylen, input, ilen, output);
8162
}
8263

83-
#endif // HAVE_MBEDTLS
84-
8564
#endif // SRSRAN_SSL_H

lib/include/srsran/interfaces/enb_rlc_interfaces.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class rlc_interface_rrc
6060
virtual void clear_buffer(uint16_t rnti) = 0;
6161
virtual void add_user(uint16_t rnti) = 0;
6262
virtual void rem_user(uint16_t rnti) = 0;
63-
virtual void add_bearer(uint16_t rnti, uint32_t lcid, srsran::rlc_config_t cnfg) = 0;
63+
virtual void add_bearer(uint16_t rnti, uint32_t lcid, const srsran::rlc_config_t& cnfg) = 0;
6464
virtual void add_bearer_mrb(uint16_t rnti, uint32_t lcid) = 0;
6565
virtual void del_bearer(uint16_t rnti, uint32_t lcid) = 0;
6666
virtual void write_sdu(uint16_t rnti, uint32_t lcid, srsran::unique_byte_buffer_t sdu) = 0;

lib/include/srsran/interfaces/enb_s1ap_interfaces.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ struct s1ap_args_t {
4242
uint32_t ts1_reloc_prep_timeout;
4343
uint32_t ts1_reloc_overall_timeout;
4444
int32_t max_s1_setup_retries;
45+
uint32_t s1_connect_timer;
4546
bool sctp_reuse_addr;
4647
int32_t sctp_rto_max;
4748
int32_t sctp_init_max_attempts;

lib/src/asn1/liblte_mme.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3019,9 +3019,13 @@ LIBLTE_ERROR_ENUM liblte_mme_unpack_emergency_number_list_ie(uint8**
30193019
emerg_num_list->N_emerg_nums = 0;
30203020
while (length < sent_length) {
30213021
idx = emerg_num_list->N_emerg_nums;
3022+
//add length check on emergency number list
3023+
if (idx >= LIBLTE_MME_EMERGENCY_NUMBER_LIST_MAX_SIZE) {
3024+
return (err);
3025+
}
30223026
emerg_num_list->emerg_num[idx].N_emerg_num_digits = ((*ie_ptr)[length++] - 1) * 2;
30233027
if (emerg_num_list->emerg_num[idx].N_emerg_num_digits > LIBLTE_MME_EMERGENCY_NUMBER_MAX_NUM_DIGITS) {
3024-
return err;
3028+
return (err);
30253029
}
30263030

30273031
emerg_num_list->emerg_num[idx].emerg_service_cat =

lib/src/common/security.cc

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,13 @@
2020
*/
2121

2222
#include "srsran/common/security.h"
23+
#include "mbedtls/md5.h"
2324
#include "srsran/common/liblte_security.h"
2425
#include "srsran/common/s3g.h"
2526
#include "srsran/common/ssl.h"
2627
#include "srsran/config.h"
2728
#include <arpa/inet.h>
2829

29-
#ifdef HAVE_MBEDTLS
30-
#include "mbedtls/md5.h"
31-
#endif
32-
#ifdef HAVE_POLARSSL
33-
#include "polarssl/md5.h"
34-
#endif
35-
3630
#define FC_EPS_K_ASME_DERIVATION 0x10
3731
#define FC_EPS_K_ENB_DERIVATION 0x11
3832
#define FC_EPS_NH_DERIVATION 0x12
@@ -850,12 +844,7 @@ uint8_t security_128_eia3(const uint8_t* key,
850844
uint8_t security_md5(const uint8_t* input, size_t len, uint8_t* output)
851845
{
852846
memset(output, 0x00, 16);
853-
#ifdef HAVE_MBEDTLS
854847
mbedtls_md5(input, len, output);
855-
#endif // HAVE_MBEDTLS
856-
#ifdef HAVE_POLARSSL
857-
md5(input, len, output);
858-
#endif
859848
return SRSRAN_SUCCESS;
860849
}
861850

0 commit comments

Comments
 (0)