Jon Shallow
d80fa1497d
Client: Remove (D)TLS / WebSocket startup call-back timing window
...
Add in new functions
coap_new_client_session3()
coap_new_client_session_pki3()
coap_new_client_session_psk3()
coap_new_client_session_oscore3()
coap_new_client_session_oscore_pki3()
coap_new_client_session_oscore_psk3()
which effectively does coap_session_set_app_data2() and
coap_ws_set_host_request() early on in the session set up cycle.
2026-01-08 17:51:10 +00:00
Jon Shallow
c9135b6b26
Copyright: Update to 2026
2026-01-05 10:37:26 +00:00
Jon Shallow
2a265ec36d
examples-code-check.c: Only compile all code if GNU / Windows compiler
2026-01-05 10:16:14 +00:00
Jon Shallow
08ae1a7c08
Multi-threading: Correctly lock all callbacks
...
Make sure all application callbacks are called with a coap_lock_callback*()
wrapper.
Rename callback variables within the internal structures with a _cb suffix for
ease of review.
2025-12-30 11:07:37 +00:00
Oblivionsage
ff6100f907
coap_uri.c: Add NULL checks after coap_new_optlist() calls
2025-12-29 16:46:42 +00:00
Jon Shallow
dadb9a36f1
coap_uri.c: Fix off by one checking error
2025-12-29 11:57:15 +00:00
Jon Shallow
53318b81ae
coap_net.c: Fix lg_srcv timing windows
2025-12-29 11:26:07 +00:00
Jon Shallow
5fb4cd8a9c
getifaddrs(): Check for function support
2025-12-29 10:52:17 +00:00
Jon Shallow
3c685a2b4d
Coverity: Fix reported errors
...
CID 1667651
CID 1667843
2025-12-27 11:58:44 +00:00
Jon Shallow
6b33d18735
Doc: Fix typos
2025-12-27 11:57:19 +00:00
Jon Shallow
5bacd80a41
examples-code-check.c: Add in <wait.h> header
2025-12-27 11:56:11 +00:00
Jon Shallow
19f1d78848
coap_send: Do not block on first send when testing for additional support
...
The first coap_send(pdu) is held back until after the optional tests for
Extended Token or Q-Block support are complete with the return from coap_send()
containing the held back pdu's mid.
If there are any errors with this PDU when subsequentially sent, the
event COAP_EVENT_FIRST_PDU_FAIL gets raised.
2025-12-19 17:03:33 +00:00
Jon Shallow
bcee6f7149
Coverity: Fix reported errors
...
CID 1667634
CID 1667636
CID 1667638
CID 1667639
CID 1667641
CID 1667642
CID 1667644
CID 1667646
CID 1667647
CID 1667649
CID 1667650
CID 1667651
2025-12-19 16:57:45 +00:00
Mario Kicherer
43bb86df92
coap_io_process_with_fds_lkd: use local fd_set to avoid conflicts when called in parallel for the same context
2025-12-19 14:30:50 +00:00
Jon Shallow
c5eed9b59b
coap_io_posix.c: Don't set fd bits for slave sockets
2025-12-19 10:21:30 +00:00
Jon Shallow
e78a25037d
size_t %4zd format: Support compilers that do not support printf %4zd
...
Use %4 " PRIdS ".
2025-12-18 14:29:09 +00:00
Mario Kicherer
44f9e49e0d
coap_io_process_with_fds_lkd: release lock during sleep on WIN32 and call second select only on demand
2025-12-18 10:18:43 +00:00
Jon Shallow
2c41299b4b
size_t %zu format: Support compilers that do not support printf %zu
...
PRIdS or PRIuS need to be defined for a format specification that compilers /
libraries (e.g. nano) understand rather than the default of %zd and %zu.
2025-12-17 15:30:48 +00:00
Jon Shallow
5567e83dfd
coap_mutex_internal.h: Fix typo in coap_thread_pid_t definition
2025-12-15 12:00:23 +00:00
Jon Shallow
5a5330d2be
RIOT: Update code version and documentation
2025-12-13 18:07:25 +00:00
Jon Shallow
24db04b45e
coap_session.c: Remove need for waiting for CSM for TCP call-home
...
Fixes (D)TLS startup direction as well.
2025-12-13 16:06:14 +00:00
Jon Shallow
b60d33ef3a
coap_pdu.c: Save unnecessary realloc() for larger packets
2025-12-13 12:51:30 +00:00
Jon Shallow
f1b245a476
coap_mbedtls.c: Report CA issues with no FS support and files defined
2025-12-13 12:50:23 +00:00
Jon Shallow
18bb1ff114
Call-Home: Fix Call-Home reconnecting should remote Client fail
2025-12-11 22:25:32 +00:00
Jon Shallow
07797d9a41
coap_strm_lwip.c: Clean up TCP close
2025-12-10 09:19:34 +00:00
Jon Shallow
e1c5889faa
LwIP: Fix TCP traffic timing windows
...
Use correct input function for netif_add() in examples.
Invoke coap_io_process() as soon as possibile following TCP input /
error.
Update rcvd window size after receipt of data.
2025-12-09 10:44:45 +00:00
Jon Shallow
12f22a16f7
coap_openssl.c: Fix DTLS timeout checking
2025-12-09 10:43:26 +00:00
Jon Shallow
0eff6a4ed7
FreeRTOS/LwIP: Support getting thread_id for locking
2025-12-09 10:16:16 +00:00
Jon Shallow
5fa14f6a74
cmake: Fix multi-thread support building
2025-12-08 13:06:46 +00:00
Jon Shallow
d97e7f39d8
configure.ac: Fix observe-persist support
2025-12-06 10:24:24 +00:00
Jon Shallow
f64d16919f
multi-threading: Fix no_recursive_check issue
2025-12-06 10:01:58 +00:00
Jon Shallow
1afe621cf5
Zephyr: tidy up / fix thread safe building
2025-12-05 16:02:54 +00:00
Jon Shallow
8c1e09a25d
cmake: Fix thread number logging
2025-12-04 19:32:55 +00:00
Jon Shallow
9f6e671894
Block Transfer: Support constrained memory clients
...
Add in new function coap_add_data_large_request_app() that provides a call-back
to get individual blocks rather than having a large buffer held in
(contrained) memory.
2025-12-04 14:42:18 +00:00
Krisztian Szilvasi
592b7bc1d6
Update the lg_crcv for each block to prevent premature release during long transfers.
...
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com >
2025-12-03 15:45:00 +00:00
Jon Shallow
0bf6a2d75c
Update SO and ABI to match v4.3.5a bug fix release
2025-11-27 11:26:43 +00:00
Jon Shallow
b59f31e71d
coap_wolfssl.c: Do more error checking
2025-11-27 10:20:09 +00:00
Jon Shallow
aef27f2e68
coap_proxy.c: Support enabling multicast forwarding requests
...
Missed pushing a commit.
2025-11-20 17:01:20 +00:00
Jon Shallow
7039c70100
coap_proxy.c: Support enabling multicast forwarding requests
...
Now configurable, previously the multicast request was just forwarded.
2025-11-20 16:47:51 +00:00
Jon Shallow
763330cb61
LwIP: Fix locking for FreeRTOS environments
...
Handle recursive locking of LOCK_TCPIP_CORE().
Updated support for IPv4 only environments.
2025-11-20 12:33:24 +00:00
Jon Shallow
f9fd716025
ext/tinydtls: Update submodule to the latest 'main' version
2025-11-20 12:31:49 +00:00
Jon Shallow
523773baab
Zephyr: Fix deprecated, now undefined, symbols when CI building
2025-11-17 11:16:41 +00:00
Jon Shallow
a6ed1a6951
coap_glutls.c: Properly handle error conditions
2025-11-06 10:24:33 +00:00
Jon Shallow
13abce9a15
coap_net.c: Better fix for unexpected Q-Block NON restart
...
The large sent body can also be an ACK as well as CON, so check it is
not a NON.
2025-10-27 20:19:47 +00:00
Jon Shallow
21f09ac337
coap_net.c: Fix unexpected Q-Block NON restart
2025-10-25 18:18:51 +01:00
Jon Shallow
fc83bf3f69
Q-Block: Handle CON usage when multiplexing requests on same session.
2025-10-25 09:58:46 +01:00
Jon Shallow
49668640a0
coap_session.c: Fix GCC array bounds warning for memcpy
...
Note assert() added from #1209 has now been removed as not needed by #1628 ,
and if NDEBUG is defined then the assert() would have been a noop anyway.
2025-10-24 09:56:54 +01:00
Patryk Jarosz
10a7e3c82d
fixed memory leak coap_send
2025-10-22 15:35:56 +01:00
Jon Shallow
e13dfda905
coap_block.c: Do not timeout lg_srcv if server app request handler is slow
2025-10-20 09:34:08 +01:00
Tobias Tefke
698b897570
coap_encode.h: Check BSD is defined before evaluating it
2025-10-20 09:33:54 +01:00