Skip to content

Commit f6be466

Browse files
committed
avs_commons 5.2.0
BREAKING CHANGES - Removed avs_unit_memstream that is now unused Features - Added persistence of DTLS context state related to the Connection ID extension and the related AVS_NET_SOCKET_OPT_CONNECTION_ID_RESUMED option - Added option to set avs_log logging level in compile time. If AVS_COMMONS_WITH_EXTERNAL_LOG_LEVELS_HEADER is specified, inactive logs will be removed during compile time - Added option to disable log level check in runtime, if active the macros avs_log_set_level and avs_log_set_default_level are not available Improvements - Avoid calling avs_net_socket_send() with zero-length buffers when using avs_stream_netbuf Bugfixes - Fixed out_message_finished and out_bytes_read not being set when read is called with a NULL buffer in avs_stream_inbuf
1 parent 12477a7 commit f6be466

File tree

275 files changed

+2227
-756
lines changed

Some content is hidden

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

275 files changed

+2227
-756
lines changed

CHANGELOG.md

Lines changed: 1021 additions & 0 deletions
Large diffs are not rendered by default.

CMakeLists.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 AVSystem <avsystem@avsystem.com>
1+
# Copyright 2023 AVSystem <avsystem@avsystem.com>
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@
1717
cmake_minimum_required(VERSION 3.6.0)
1818
project(avs_commons C)
1919

20-
set(AVS_COMMONS_VERSION "5.1.3")
20+
set(AVS_COMMONS_VERSION "5.2.0")
2121

2222
################# DISTRIBUTION #################################################
2323

@@ -158,7 +158,7 @@ option(WITH_AVS_SORTED_SET "AVSystem wrapper for list and red-black tree impleme
158158
include(CMakeDependentOption)
159159
cmake_dependent_option(WITH_INTERNAL_LOGS "Enable logging from inside AVSystem Commons libraries" ON WITH_AVS_LOG OFF)
160160
set(AVS_COMMONS_WITH_INTERNAL_LOGS ${WITH_INTERNAL_LOGS})
161-
cmake_dependent_option(WITH_INTERNAL_TRACE "Enable TRACE-level logs inside AVSystem Commons libraries" OFF WITH_INTERNAL_LOGS OFF)
161+
cmake_dependent_option(WITH_INTERNAL_TRACE "Enable TRACE-level logs inside AVSystem Commons libraries" OFF "WITH_INTERNAL_LOGS;NOT EXTERNAL_LOG_LEVELS_HEADER" OFF)
162162
set(AVS_COMMONS_WITH_INTERNAL_TRACE ${WITH_INTERNAL_TRACE})
163163
cmake_dependent_option(WITH_MBEDTLS_LOGS "Enable logging from mbedTLS backend library (if used)" OFF "WITH_INTERNAL_LOGS;WITH_MBEDTLS" OFF)
164164
set(AVS_COMMONS_NET_WITH_MBEDTLS_LOGS ${WITH_MBEDTLS_LOGS})
@@ -175,6 +175,10 @@ if(WITH_AVS_LOG)
175175
set(EXTERNAL_LOG_HEADER_DEFAULT "")
176176
set(EXTERNAL_LOG_HEADER ${EXTERNAL_LOG_HEADER_DEFAULT} CACHE STRING "External log header path, if required")
177177
set(AVS_COMMONS_WITH_EXTERNAL_LOGGER_HEADER "${EXTERNAL_LOG_HEADER}")
178+
set(EXTERNAL_LOG_LEVELS_HEADER_DEFAULT "")
179+
set(EXTERNAL_LOG_LEVELS_HEADER ${EXTERNAL_LOG_LEVELS_HEADER_DEFAULT} CACHE STRING "Excluded logs header path, if required")
180+
set(AVS_COMMONS_WITH_EXTERNAL_LOG_LEVELS_HEADER "${EXTERNAL_LOG_LEVELS_HEADER}")
181+
set(AVS_COMMONS_WITHOUT_LOG_CHECK_IN_RUNTIME ${WITHOUT_LOG_CHECK_IN_RUNTIME})
178182
endif()
179183

180184
cmake_dependent_option(WITH_TEST "Enable unit tests of AVSystem Commons library itself" OFF WITH_AVS_UNIT OFF)

avs_commons-config.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 AVSystem <avsystem@avsystem.com>
1+
# Copyright 2023 AVSystem <avsystem@avsystem.com>
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

avs_commons-version.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 AVSystem <avsystem@avsystem.com>
1+
# Copyright 2023 AVSystem <avsystem@avsystem.com>
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

cmake/FindMbedTLS.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 AVSystem <avsystem@avsystem.com>
1+
# Copyright 2023 AVSystem <avsystem@avsystem.com>
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

cmake/FindTinyDTLS.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 AVSystem <avsystem@avsystem.com>
1+
# Copyright 2023 AVSystem <avsystem@avsystem.com>
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

cmake/PosixFeatures.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 AVSystem <avsystem@avsystem.com>
1+
# Copyright 2023 AVSystem <avsystem@avsystem.com>
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

compat/lwip-posix-compat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 AVSystem <avsystem@avsystem.com>
2+
* Copyright 2023 AVSystem <avsystem@avsystem.com>
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

compat/winsock-posix-compat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 AVSystem <avsystem@avsystem.com>
2+
* Copyright 2023 AVSystem <avsystem@avsystem.com>
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

conditional_headers_whitelist.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
"compression": [
2323
"zlib\\.h"
2424
],
25+
"avs_mbedtls_global\\.c": [
26+
"psa/crypto\\.h"
27+
],
2528
"avs_openssl_common\\.h": [
2629
"valgrind/.*"
2730
],

0 commit comments

Comments
 (0)