Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package re for openSUSE:Factory checked in at 2025-11-09 21:08:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/re (Old) and /work/SRC/openSUSE:Factory/.re.new.1980 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "re" Sun Nov 9 21:08:31 2025 rev:16 rq:1316546 version:4.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/re/re.changes 2025-09-22 16:40:23.731215830 +0200 +++ /work/SRC/openSUSE:Factory/.re.new.1980/re.changes 2025-11-09 21:09:17.042613767 +0100 @@ -1,0 +2,6 @@ +Thu Oct 16 15:08:00 UTC 2025 - Martin Hauke <[email protected]> + +- Update to version 4.2.0 + * https://github.com/baresip/re/releases/tag/v4.2.0 + +------------------------------------------------------------------- Old: ---- re-4.1.0.tar.gz New: ---- re-4.2.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ re.spec ++++++ --- /var/tmp/diff_new_pack.OVZz0G/_old 2025-11-09 21:09:17.622638025 +0100 +++ /var/tmp/diff_new_pack.OVZz0G/_new 2025-11-09 21:09:17.626638191 +0100 @@ -17,10 +17,10 @@ # -%global sover 37 +%global sover 38 %global libname lib%{name}%{sover} Name: re -Version: 4.1.0 +Version: 4.2.0 Release: 0 Summary: Library for real-time communications with async I/O support License: BSD-3-Clause ++++++ re-4.1.0.tar.gz -> re-4.2.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/.github/workflows/android.yml new/re-4.2.0/.github/workflows/android.yml --- old/re-4.1.0/.github/workflows/android.yml 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/.github/workflows/android.yml 2025-10-14 12:49:28.000000000 +0200 @@ -47,36 +47,12 @@ cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_LATEST_HOME/build/cmake/android.toolchain.cmake -DANDROID_ABI="$abi" -DANDROID_PLATFORM=android-$api -DOPENSSL_ROOT_DIR=openssl -DOPENSSL_INCLUDE_DIR=openssl/include -DOPENSSL_CRYPTO_LIBRARY=openssl/libcrypto.a -DOPENSSL_SSL_LIBRARY=openssl/libssl.a -DUSE_UNIXSOCK=OFF . cmake --build . -j 4 -t retest - - name: AVD cache - uses: actions/cache@v4 - id: avd-cache - with: - path: | - ~/.android/avd/* - ~/.android/adb* - key: avd-${{ env.abi }}-${{ env.api }} - - - name: create AVD and generate snapshot for caching - if: steps.avd-cache.outputs.cache-hit != 'true' - uses: reactivecircus/android-emulator-runner@v2 - with: - api-level: ${{ env.api }} - arch: ${{ env.abi }} - target: google_apis - force-avd-creation: false - emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -no-metrics - disable-animations: false - script: echo "Generated AVD snapshot for caching." - - name: run uses: reactivecircus/android-emulator-runner@v2 with: api-level: ${{ env.api }} arch: ${{ env.abi }} target: google_apis - force-avd-creation: false - emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -no-metrics - disable-animations: true # Use test data directory as a writeable directory for I/O tests as the emulator file system is not generally writeable script: | adb push test/retest /data/local/tmp/retest diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/.github/workflows/cmake_win.yml new/re-4.2.0/.github/workflows/cmake_win.yml --- old/re-4.1.0/.github/workflows/cmake_win.yml 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/.github/workflows/cmake_win.yml 2025-10-14 12:49:28.000000000 +0200 @@ -64,7 +64,7 @@ - name: Install OpenSSL if: ${{ matrix.config.openssl }} run: | - choco install --no-progress ${{ matrix.config.choco }} openssl --version 3.5.2 + choco install --no-progress ${{ matrix.config.choco }} openssl --version 3.5.4 - name: Build shell: cmd diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/CHANGELOG.md new/re-4.2.0/CHANGELOG.md --- old/re-4.1.0/CHANGELOG.md 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/CHANGELOG.md 2025-10-14 12:49:28.000000000 +0200 @@ -5,6 +5,36 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## v4.2.0 - 2025-10-15 + +## What's Changed +* test: add testcode for btrace module by @alfredh in https://github.com/baresip/re/pull/1414 +* types: add ETIME fallback by @sreimers in https://github.com/baresip/re/pull/1420 +* test: add testing of conf_get_bool() by @alfredh in https://github.com/baresip/re/pull/1419 +* test/btrace: skip thread test by @sreimers in https://github.com/baresip/re/pull/1422 +* Revert "dtls: remove dtls_set_handlers() -- unused" by @sreimers in https://github.com/baresip/re/pull/1421 +* ice/icem: add icem_rcand_ready helper by @sreimers in https://github.com/baresip/re/pull/1424 +* ice/sdp: remove mDNS AI_V4MAPPED and log late candidate by @sreimers in https://github.com/baresip/re/pull/1423 +* tls: minor improvements to SNI and Common-name comparison by @alfredh in https://github.com/baresip/re/pull/1425 +* tls: revert wrong match-checking in SNI function by @alfredh in https://github.com/baresip/re/pull/1427 +* ci-windows: bump choco openssl version to 3.5.3 by @alfredh in https://github.com/baresip/re/pull/1426 +* tls: sni - a null pointer check by @cspiel1 in https://github.com/baresip/re/pull/1430 +* test: fix some minor typos by @alfredh in https://github.com/baresip/re/pull/1429 +* dbg: remove dbg_close() -- unused by @alfredh in https://github.com/baresip/re/pull/1428 +* ci,windows: bump choco openssl to 3.5.4 by @alfredh in https://github.com/baresip/re/pull/1433 +* misc: fix some minor typos by @alfredh in https://github.com/baresip/re/pull/1432 +* test: test both fragmented and non-fragmented H.265 packets by @alfredh in https://github.com/baresip/re/pull/1434 +* test: add negative AES testcases by @alfredh in https://github.com/baresip/re/pull/1435 +* test: add test for conf_apply() by @alfredh in https://github.com/baresip/re/pull/1436 +* ci/android: Upgrade to API-level 29 (Android 10.0) by @alfredh in https://github.com/baresip/re/pull/1439 +* ci/android: remove AVD cache by @sreimers in https://github.com/baresip/re/pull/1442 +* ci/android: revert to android api level 26 by @sreimers in https://github.com/baresip/re/pull/1443 +* bump version number to 4.2.0 by @alfredh in https://github.com/baresip/re/pull/1440 + + +**Full Changelog**: https://github.com/baresip/re/compare/v4.1.0...v4.2.0 + + ## v4.1.0 - 2025-09-10 ### What's Changed diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/CMakeLists.txt new/re-4.2.0/CMakeLists.txt --- old/re-4.1.0/CMakeLists.txt 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/CMakeLists.txt 2025-10-14 12:49:28.000000000 +0200 @@ -14,13 +14,13 @@ cmake_minimum_required(VERSION 3.18...4.0) project(re - VERSION 4.1.0 + VERSION 4.2.0 LANGUAGES C HOMEPAGE_URL https://github.com/baresip/re DESCRIPTION "Generic library for real-time communications" ) -set(PROJECT_SOVERSION 37) # bump if ABI breaks +set(PROJECT_SOVERSION 38) # bump if ABI breaks # Pre-release identifier, comment out on a release # Increment for breaking changes (dev2, dev3...) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/include/re_av1.h new/re-4.2.0/include/re_av1.h --- old/re-4.1.0/include/re_av1.h 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/include/re_av1.h 2025-10-14 12:49:28.000000000 +0200 @@ -69,7 +69,7 @@ /** AV1 Aggregation Header */ struct av1_aggr_hdr { unsigned z:1; /**< Continuation of OBU fragment from prev packet */ - unsigned y:1; /**< Last OBU element will continue in next packe */ + unsigned y:1; /**< Last OBU element will continue in next packet */ unsigned w:2; /**< Number of OBU elements in the packet */ unsigned n:1; /**< First packet of a coded video sequence */ }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/include/re_dbg.h new/re-4.2.0/include/re_dbg.h --- old/re-4.1.0/include/re_dbg.h 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/include/re_dbg.h 2025-10-14 12:49:28.000000000 +0200 @@ -113,7 +113,6 @@ typedef void (dbg_print_h)(int level, const char *p, size_t len, void *arg); void dbg_init(int level, enum dbg_flags flags); -void dbg_close(void); void dbg_handler_set(dbg_print_h *ph, void *arg); void dbg_printf(int level, const char *fmt, ...); const char *dbg_level_str(int level); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/include/re_ice.h new/re-4.2.0/include/re_ice.h --- old/re-4.1.0/include/re_ice.h 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/include/re_ice.h 2025-10-14 12:49:28.000000000 +0200 @@ -95,6 +95,7 @@ struct list *icem_rcandl(const struct icem *icem); struct list *icem_checkl(const struct icem *icem); struct list *icem_validl(const struct icem *icem); +bool icem_rcand_ready(struct icem *icem); const struct sa *icem_cand_default(struct icem *icem, unsigned compid); const struct sa *icem_selected_laddr(const struct icem *icem, unsigned compid); const struct ice_cand *icem_selected_lcand(const struct icem *icem, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/include/re_tls.h new/re-4.2.0/include/re_tls.h --- old/re-4.1.0/include/re_tls.h 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/include/re_tls.h 2025-10-14 12:49:28.000000000 +0200 @@ -126,6 +126,8 @@ dtls_estab_h *estabh, dtls_recv_h *recvh, dtls_close_h *closeh, void *arg); int dtls_send(struct tls_conn *tc, struct mbuf *mb); +void dtls_set_handlers(struct tls_conn *tc, dtls_estab_h *estabh, + dtls_recv_h *recvh, dtls_close_h *closeh, void *arg); const struct sa *dtls_peer(const struct tls_conn *tc); void dtls_set_peer(struct tls_conn *tc, const struct sa *peer); void dtls_recv_packet(struct dtls_sock *sock, const struct sa *src, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/include/re_types.h new/re-4.2.0/include/re_types.h --- old/re-4.1.0/include/re_types.h 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/include/re_types.h 2025-10-14 12:49:28.000000000 +0200 @@ -221,6 +221,11 @@ #define ENOSR 218 #endif +/** Timer expired */ +#ifndef ETIME +#define ETIME 219 +#endif + /** Key was rejected by service */ #ifndef EKEYREJECTED #define EKEYREJECTED 129 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/mk/Doxyfile new/re-4.2.0/mk/Doxyfile --- old/re-4.1.0/mk/Doxyfile 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/mk/Doxyfile 2025-10-14 12:49:28.000000000 +0200 @@ -4,7 +4,7 @@ # Project related configuration options #--------------------------------------------------------------------------- PROJECT_NAME = libre -PROJECT_NUMBER = 4.1.0 +PROJECT_NUMBER = 4.2.0 OUTPUT_DIRECTORY = ../re-dox CREATE_SUBDIRS = NO OUTPUT_LANGUAGE = English diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/src/crc32/crc32.c new/re-4.2.0/src/crc32/crc32.c --- old/re-4.1.0/src/crc32/crc32.c 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/src/crc32/crc32.c 2025-10-14 12:49:28.000000000 +0200 @@ -23,7 +23,7 @@ * order from highest-order term to lowest-order term. UARTs transmit * characters in order from LSB to MSB. By storing the CRC this way * we hand it to the UART in the order low-byte to high-byte; the UART - * sends each low-bit to hight-bit; and the result is transmission bit + * sends each low-bit to high-bit; and the result is transmission bit * by bit from highest- to lowest-order term without requiring any bit * shuffling on our part. Reception works similarly * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/src/dbg/dbg.c new/re-4.2.0/src/dbg/dbg.c --- old/re-4.1.0/src/dbg/dbg.c 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/src/dbg/dbg.c 2025-10-14 12:49:28.000000000 +0200 @@ -76,14 +76,6 @@ /** - * Close debugging - */ -void dbg_close(void) -{ -} - - -/** * Set optional debug print handler * * @param ph Print handler diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/src/fmt/str.c new/re-4.2.0/src/fmt/str.c --- old/re-4.1.0/src/fmt/str.c 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/src/fmt/str.c 2025-10-14 12:49:28.000000000 +0200 @@ -20,7 +20,7 @@ /** * Convert a ascii hex string to binary format * - * @param hex Destinatin binary buffer + * @param hex Destination binary buffer * @param len Length of binary buffer * @param str Source ascii string * @@ -45,7 +45,7 @@ /** * Copy a 0-terminated string with maximum length * - * @param dst Destinatin string + * @param dst Destination string * @param src Source string * @param n Maximum size of destination, including 0-terminator */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/src/ice/icem.c new/re-4.2.0/src/ice/icem.c --- old/re-4.1.0/src/ice/icem.c 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/src/ice/icem.c 2025-10-14 12:49:28.000000000 +0200 @@ -542,3 +542,22 @@ (void)re_printf("{%11s. } %v", icem->name, fmt, &ap); va_end(ap); } + + +/** + * Check if remote ICE candidates are ready + * + * @param icem ICE Media object + * + * @return true if ready otherwise false + */ +bool icem_rcand_ready(struct icem *icem) +{ + if (!icem) + return false; + + if (icem->rcand_wait) + return true; + + return !list_isempty(&icem->rcandl); +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/src/ice/icesdp.c new/re-4.2.0/src/ice/icesdp.c --- old/re-4.1.0/src/ice/icesdp.c 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/src/ice/icesdp.c 2025-10-14 12:49:28.000000000 +0200 @@ -210,11 +210,7 @@ struct rcand *rcand = arg; struct addrinfo *res, *res0 = NULL; -#if defined(OPENBSD) || defined(__NetBSD__) struct addrinfo hints = {.ai_flags = AI_ADDRCONFIG, -#else - struct addrinfo hints = {.ai_flags = AI_ADDRCONFIG | AI_V4MAPPED, -#endif .ai_family = rcand->ai_family}; int err; @@ -246,7 +242,8 @@ goto out; if (!rcand->icem->rcand_wait) { - DEBUG_WARNING("late mDNS candidate: %s\n", rcand->domain); + DEBUG_WARNING("late mDNS candidate: %s - %J\n", rcand->domain, + rcand->caddr); goto out; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/src/tls/openssl/sni.c new/re-4.2.0/src/tls/openssl/sni.c --- old/re-4.1.0/src/tls/openssl/sni.c 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/src/tls/openssl/sni.c 2025-10-14 12:49:28.000000000 +0200 @@ -86,22 +86,16 @@ { struct tls_cert *tls_cert = NULL; struct le *le; - size_t sz; - char *cn; const struct list *certs = tls_certs(tls); - if (!certs) + if (!list_head(certs)) return NULL; if (!str_isset(sni)) return list_head(certs)->data; - sz = str_len(sni) + 1; - if (sz > TLSEXT_MAXLEN_host_name) - return NULL; - - cn = mem_zalloc(sz, NULL); LIST_FOREACH(certs, le) { + char cn[TLSEXT_MAXLEN_host_name] = ""; X509 *x509; X509_NAME *nm; bool match = false; @@ -115,8 +109,9 @@ } nm = X509_get_subject_name(x509); - X509_NAME_get_text_by_NID(nm, NID_commonName, cn, (int) sz); - if (!str_cmp(sni, cn)) + int n = X509_NAME_get_text_by_NID(nm, NID_commonName, + cn, (int) sizeof(cn)); + if (n > 0 && !str_cmp(sni, cn)) break; err = x509_match_alt_name(x509, sni, &match); @@ -129,7 +124,6 @@ break; } - mem_deref(cn); ERR_clear_error(); return tls_cert; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/src/tls/openssl/tls.c new/re-4.2.0/src/tls/openssl/tls.c --- old/re-4.1.0/src/tls/openssl/tls.c 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/src/tls/openssl/tls.c 2025-10-14 12:49:28.000000000 +0200 @@ -556,7 +556,7 @@ /** * Create a selfsigned X509 certificate using EC * - * @param tls TLS Contect + * @param tls TLS Context * @param cn Common Name * @param curve_n Known EC curve name * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/src/tls/openssl/tls_udp.c new/re-4.2.0/src/tls/openssl/tls_udp.c --- old/re-4.1.0/src/tls/openssl/tls_udp.c 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/src/tls/openssl/tls_udp.c 2025-10-14 12:49:28.000000000 +0200 @@ -654,6 +654,28 @@ /** + * Set handlers on a DTLS Connection + * + * @param tc DTLS Connection + * @param estabh DTLS Connection Established handler + * @param recvh DTLS Connection Receive data handler + * @param closeh DTLS Connection Close handler + * @param arg Handler argument + */ +void dtls_set_handlers(struct tls_conn *tc, dtls_estab_h *estabh, + dtls_recv_h *recvh, dtls_close_h *closeh, void *arg) +{ + if (!tc) + return; + + tc->estabh = estabh; + tc->recvh = recvh; + tc->closeh = closeh; + tc->arg = arg; +} + + +/** * Get the remote peer of a DTLS Connection * * @param tc DTLS Connection diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/src/tls/stub.c new/re-4.2.0/src/tls/stub.c --- old/re-4.1.0/src/tls/stub.c 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/src/tls/stub.c 2025-10-14 12:49:28.000000000 +0200 @@ -385,6 +385,17 @@ } +void dtls_set_handlers(struct tls_conn *tc, dtls_estab_h *estabh, + dtls_recv_h *recvh, dtls_close_h *closeh, void *arg) +{ + (void)tc; + (void)estabh; + (void)recvh; + (void)closeh; + (void)arg; +} + + const struct sa *dtls_peer(const struct tls_conn *tc) { (void)tc; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/src/trice/lcand.c new/re-4.2.0/src/trice/lcand.c --- old/re-4.1.0/src/trice/lcand.c 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/src/trice/lcand.c 2025-10-14 12:49:28.000000000 +0200 @@ -580,7 +580,7 @@ &lcand->base_addr); } - /* note: original lcand has presedence, fallback to base-candidate */ + /* note: original lcand has precedence, fallback to base-candidate */ switch (lcand->attr.type) { case ICE_CAND_TYPE_HOST: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/src/trice/stunsrv.c new/re-4.2.0/src/trice/stunsrv.c --- old/re-4.1.0/src/trice/stunsrv.c 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/src/trice/stunsrv.c 2025-10-14 12:49:28.000000000 +0200 @@ -255,7 +255,7 @@ goto badmsg; trice_tracef(icem, 32, - "[%u] STUNSRV: Tx success respons [%H ---> %J]\n", + "[%u] STUNSRV: Tx success response [%H ---> %J]\n", lcand->attr.compid, trice_cand_print, lcand, src); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/test/CMakeLists.txt new/re-4.2.0/test/CMakeLists.txt --- old/re-4.1.0/test/CMakeLists.txt 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/test/CMakeLists.txt 2025-10-14 12:49:28.000000000 +0200 @@ -85,6 +85,7 @@ av1.c base64.c bfcp.c + btrace.c conf.c convert.c crc32.c diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/test/aes.c new/re-4.2.0/test/aes.c --- old/re-4.1.0/test/aes.c 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/test/aes.c 2025-10-14 12:49:28.000000000 +0200 @@ -122,6 +122,36 @@ err = test_aes_ctr_loop(); TEST_ERR(err); + static const uint8_t nullkey[AES_BLOCK_SIZE]; + struct aes *aes = NULL; + int lerr; + + lerr = aes_alloc(NULL, AES_MODE_CTR, nullkey, 128, NULL); + ASSERT_TRUE(lerr != 0); + + lerr = aes_alloc(&aes, AES_MODE_CTR, nullkey, 9999, NULL); + ASSERT_TRUE(lerr != 0); + + lerr = aes_alloc(&aes, AES_MODE_GCM, nullkey, 9999, NULL); + ASSERT_TRUE(lerr != 0); + + lerr = aes_alloc(&aes, (enum aes_mode)42, nullkey, 128, NULL); + ASSERT_TRUE(lerr != 0); + + lerr = aes_encr(NULL, NULL, NULL, 0); + ASSERT_TRUE(lerr != 0); + + lerr = aes_decr(NULL, NULL, NULL, 0); + ASSERT_TRUE(lerr != 0); + + aes_set_iv(NULL, NULL); + + lerr = aes_get_authtag(NULL, NULL, 0); + ASSERT_TRUE(lerr != 0); + + lerr = aes_authenticate(NULL, NULL, 0); + ASSERT_TRUE(lerr != 0); + out: return err; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/test/btrace.c new/re-4.2.0/test/btrace.c --- old/re-4.1.0/test/btrace.c 1970-01-01 01:00:00.000000000 +0100 +++ new/re-4.2.0/test/btrace.c 2025-10-14 12:49:28.000000000 +0200 @@ -0,0 +1,50 @@ +/** + * @file btrace.c Backtrace testcode + * + * Copyright (C) 2025 Alfred E. Heggestad + */ + +#include <re.h> +#include "test.h" + + +#define DEBUG_MODULE "btrace" +#define DEBUG_LEVEL 5 +#include <re_dbg.h> + + +static int devnull_handler(const char *p, size_t size, void *arg) +{ + (void)p; + (void)size; + (void)arg; + + return 0; +} + + +int test_btrace(void) +{ + if (test_mode == TEST_THREAD) + return ESKIPPED; + + static struct re_printf pf_devnull = { + .vph = devnull_handler + }; + struct btrace btraces = {0}; + + int err = btrace(&btraces); + TEST_ERR(err); + + err = btrace_print(&pf_devnull, &btraces); + TEST_ERR(err); + + err = btrace_println(&pf_devnull, &btraces); + TEST_ERR(err); + + err = btrace_print_json(&pf_devnull, &btraces); + TEST_ERR(err); + + out: + return err; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/test/conf.c new/re-4.2.0/test/conf.c --- old/re-4.1.0/test/conf.c 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/test/conf.c 2025-10-14 12:49:28.000000000 +0200 @@ -12,13 +12,34 @@ #include <re_dbg.h> +static int conf_handler(const struct pl *val, void *arg) +{ + uint32_t *count = arg; + int err = 0; + + ++(*count); + + ASSERT_EQ(*count, pl_u32(val)); + + out: + return err; +} + + int test_conf(void) { static const char *cfg = "string_val\trattarei\n" "u32_val 42\n" "i32_val -23\n" - "float_val 1.5\n"; + "float_val 1.5\n" + "bool_val_1 true\n" + "bool_val_2 Yes\n" + "bool_val_3 1\n" + "bool_val_4 false\n" + "apply_val 1\n" + "apply_val 2\n" + ; char str[256]; struct conf *conf; struct pl pl; @@ -48,6 +69,30 @@ TEST_ERR(err); TEST_EQUALS(1.5, fl); + bool val = false; + + err = conf_get_bool(conf, "bool_val_1", &val); + TEST_ERR(err); + ASSERT_TRUE(val); + + err = conf_get_bool(conf, "bool_val_2", &val); + TEST_ERR(err); + ASSERT_TRUE(val); + + err = conf_get_bool(conf, "bool_val_3", &val); + TEST_ERR(err); + ASSERT_TRUE(val); + + err = conf_get_bool(conf, "bool_val_4", &val); + TEST_ERR(err); + ASSERT_TRUE(!val); + + uint32_t count = 0; + + err = conf_apply(conf, "apply_val", conf_handler, &count); + TEST_ERR(err); + ASSERT_EQ(2, count); + /* Non-existing parameters */ if (0 == conf_get(conf, "rattarei", &pl)) goto badmsg; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/test/h265.c new/re-4.2.0/test/h265.c --- old/re-4.1.0/test/h265.c 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/test/h265.c 2025-10-14 12:49:28.000000000 +0200 @@ -228,8 +228,13 @@ ++state->count; - err = mbuf_write_mem(mb_pkt, hdr, hdr_len); - err |= mbuf_write_mem(mb_pkt, pld, pld_len); + if (hdr && hdr_len) { + err = mbuf_write_mem(mb_pkt, hdr, hdr_len); + if (err) + goto out; + } + + err = mbuf_write_mem(mb_pkt, pld, pld_len); if (err) goto out; @@ -249,10 +254,9 @@ "00000140010c01ffff01600000030090000003000003003cba024000000001"; -int test_h265_packet(void) +static int test_h265_packet_param(size_t pktsize) { struct state state; - const size_t pktsize = 8; int err; memset(&state, 0, sizeof(state)); @@ -280,3 +284,18 @@ return err; } + + +int test_h265_packet(void) +{ + int err; + + err = test_h265_packet_param(8); + TEST_ERR(err); + + err = test_h265_packet_param(1500); + TEST_ERR(err); + + out: + return err; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/test/sip.c new/re-4.2.0/test/sip.c --- old/re-4.1.0/test/sip.c 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/test/sip.c 2025-10-14 12:49:28.000000000 +0200 @@ -824,7 +824,7 @@ err = sip_transp_add(stt->sip, SIP_TRANSP_TLS, &laddr, stt->tls); TEST_ERR(err); - /* actuall test cases */ + /* actual test cases */ err = sip_transp_add_ccert(NULL, &stt->uri, clientcert); if (err == EINVAL) { err = 0; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/test/test.c new/re-4.2.0/test/test.c --- old/re-4.1.0/test/test.c 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/test/test.c 2025-10-14 12:49:28.000000000 +0200 @@ -64,8 +64,9 @@ TEST(test_base64), TEST(test_bfcp), TEST(test_bfcp_bin), - TEST(test_bfcp_udp), TEST(test_bfcp_tcp), + TEST(test_bfcp_udp), + TEST(test_btrace), TEST(test_conf), TEST(test_crc32), TEST(test_dns_hdr), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/test/test.h new/re-4.2.0/test/test.h --- old/re-4.1.0/test/test.h 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/test/test.h 2025-10-14 12:49:28.000000000 +0200 @@ -171,6 +171,7 @@ int test_bfcp_bin(void); int test_bfcp_udp(void); int test_bfcp_tcp(void); +int test_btrace(void); int test_conf(void); int test_crc32(void); int test_dns_hdr(void); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/test/tls.c new/re-4.2.0/test/tls.c --- old/re-4.1.0/test/tls.c 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/test/tls.c 2025-10-14 12:49:28.000000000 +0200 @@ -490,7 +490,7 @@ if (err) goto out; - /* actuall test cases*/ + /* actual test cases*/ err = tls_conn_change_cert(tt.sc_cli, NULL); TEST_EQUALS(EINVAL, err); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/test/trice.c new/re-4.2.0/test/trice.c --- old/re-4.1.0/test/trice.c 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/test/trice.c 2025-10-14 12:49:28.000000000 +0200 @@ -714,7 +714,7 @@ ADD_REMOTE_HOST_CANDIDATE(&addr); - /* the checklist is formated automatically */ + /* the checklist is formatted automatically */ TEST_EQUALS(1, list_count(trice_lcandl(f->icem))); TEST_EQUALS(1, list_count(trice_rcandl(f->icem))); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re-4.1.0/test/vid.c new/re-4.2.0/test/vid.c --- old/re-4.1.0/test/vid.c 2025-09-10 15:05:31.000000000 +0200 +++ new/re-4.2.0/test/vid.c 2025-10-14 12:49:28.000000000 +0200 @@ -115,7 +115,7 @@ /* - * Create one RGB32 pixel in native endianess + * Create one RGB32 pixel in native endianness */ #define RGB32(r, g, b) (r)<<16 | (g)<<8 | (b)
