Commit Graph
2767 Commits
Author SHA1 Message Date
Jon Shallow 0b8005155a OSCORE interop: Make external interop testing easier 2023-10-13 14:19:12 +01:00
Jon Shallow ccf17f5914 coap.h: Tidy up coap.h.* files to make them consistent 2023-10-13 14:17:34 +01:00
Jon Shallow 1b639d1ce6 examples-code-check.c: Make troubleshooting easier 2023-10-13 14:15:30 +01:00
Jon Shallow c01f29f23a workflows/main.yml: Run the pre-commit checks first 2023-10-13 14:12:33 +01:00
kkrentz d61713d35d Contiki-NG: Renamings to avoid confusion 2023-10-13 14:12:06 +01:00
kkrentz 9bb8860b71 Contiki-NG: Adhere to function description in coap_io_process 2023-10-13 14:12:06 +01:00
kkrentz 2a77fb206d Contiki-NG: Declare max_sockets as static const 2023-10-13 14:12:06 +01:00
kkrentz 44cf0940c9 Contiki-NG: Re-schedule prepare timer in same occasions as the epoll timer 2023-10-13 14:12:06 +01:00
kkrentz 62790584be Contiki-NG: Synchronously stop libcoap_process upon coap_cleanup() 2023-10-13 14:12:06 +01:00
Olaf Bergmann 95e1310ddc Dockerfile.develop: Add package adduser
Installs the package adduser where /sbin/adduser apparently has
been moved.
2023-10-10 17:19:39 +01:00
Jon Shallow 5fd2f89ef0 pdu.c: Fix issue with 269 delta in internal coap_remove_option()
Update unit tests to check for a delta of 13 / 269.
v4.3.4
2023-10-04 22:04:19 +01:00
Jon Shallow 69e1784561 Update version to release 4.3.4
Update ABI to 3.1.1
2023-10-04 22:04:05 +01:00
Jon Shallow 9fbce393d9 Windows: Fix workflows OpenSSL install 2023-10-04 22:03:49 +01:00
Jon Shallow 342a2d0893 coap.h.windows: Correct sort order of includes 2023-10-04 22:03:36 +01:00
Jon Shallow f1f539485b workflows: Revert #1073 to add OpenSSL dev environment
OpenSSL dev environment is no longer included in windows-latest builds.

Disable Windows build OpenSSL 3 deprecation warnings
2023-10-04 22:03:22 +01:00
Jon Shallow fe463276d7 CMakeLists.txt: Create .so files using the ABI
configure.ac: Report the ABI version.
2023-10-04 22:03:06 +01:00
Jon Shallow da0f065af2 coap_handler.txt.in: Update documentation for request handler 2023-10-04 22:02:47 +01:00
Jon Shallow 8683a3177c coap_cleanup: Allow coap_startup() to be called after coap_cleanup() 2023-10-04 22:02:31 +01:00
kkrentz 836ceec436 Contiki-NG: Fix two compilation errors on macOS
One compilation error was a redefinition of ntohs in coap_config.h.contiki.
Another compilation error was due to an unused function in coap_time.c.
2023-10-04 22:01:41 +01:00
Jon Shallow ae2cc9ffef coap_address.c: Check for NULL ptr in is_bcast() 2023-10-04 22:01:22 +01:00
Jon Shallow d9bdf4b284 coap_address.c: Make coap_is_bcast() more generic for different builds 2023-10-04 22:00:27 +01:00
Jon Shallow 9cde7cdee1 Update version to release 4.3.3 v4.3.3 2023-09-14 09:55:47 +01:00
Jon Shallow e68f745ae9 configure.ac: Correct ABI version number for .so files 2023-09-12 11:16:32 +01:00
Jon Shallow 269216eb19 RIOT: Update PKG_VERSION to point to 4.3.2 code v4.3.2 2023-09-07 12:04:46 +01:00
Jon Shallow f67f44516a Update version to release 4.3.2 2023-09-07 11:51:24 +01:00
Jon Shallow a253cdb090 RIOT: Follow RIOT coding for RIOT examples
Update libcoap test build for RIOT.
2023-09-07 09:49:04 +01:00
Jon Shallow 4abe0ea7aa doc: Add hyperlinks for different TLS libraries 2023-09-05 12:19:25 +01:00
Daniel Mangum 9e24d22ce9 coap_address.c: do not enable IPV4 broadcast as multicast with Zephyr
Adds a check to ensure IPV4 broadcast as multicast is not enabled when
using Zephyr as it will break builds with Zephyr's minimal libc, which
is missing ifaddr.h.

Signed-off-by: Daniel Mangum <georgedanielmangum@gmail.com>
2023-09-04 10:39:36 +01:00
Daniel Mangum a9808ade42 Define coap_mutex_t as sys_mutex on Zephyr
Changes definition of coap_mutex_t as k_mutex to sys_mutex to build
properly with Zephyr.

Signed-off-by: Daniel Mangum <georgedanielmangum@gmail.com>
2023-09-04 10:35:57 +01:00
osobiehl 2ca498822c fix memory leak in coap_async
async requests were being lost because the order of these 2 lines
should be changed
2023-08-30 21:26:58 +01:00
Jon Shallow c6637bb049 RIOT: Follow RIOT coding for RIOT examples 2023-08-28 16:21:50 +01:00
Jon Shallow d295ccb638 Coverity: Fix CID 1469636, 1514378, 1520611 and 1566432 2023-08-19 14:07:21 +01:00
Jon Shallow 760dd4bc9b RIOT: Add in cplusplus wrappers to example header files 2023-08-19 11:56:30 +01:00
kkrentz 45261daea9 coap_block.c: Use correct format specifier when logging chunk size 2023-08-16 21:04:34 +01:00
Olaf Bergmann 8ca36cdf05 coap_session.c: Fix GCC array bounds warning for memcpy
Copying from the multidimensional coap_layers_coap array into the
coap_layers of endpoint::sock.lfunc triggers a warning from
GCC v13.2.0 as the global variable has no space for the end marker
COAP_PROTO_LAST.

This change adds an assertion to indicate that proto is always less
than COAP_PROTO_LAST.
2023-08-15 13:15:22 +02:00
Jon Shallow c8a305a6cd SECURITY.md: Add in a security policy 2023-08-14 15:30:21 +01:00
Jon Shallow 8d81c9af21 assert: Fix compiler warnings when building with --disable-assert 2023-08-14 14:51:41 +01:00
Jon Shallow 5a9a6cc2c2 RIOT: Update PKG_URL and PKG_VERSION to latest 4.3.2rc2 code v4.3.2-rc2 2023-08-14 10:43:28 +01:00
Jon Shallow f176bf3c53 release 4.3.2rc2: Release candidate for 4.3.2 2023-08-14 09:37:23 +01:00
Jon Shallow 91000861e1 tinydtls: Update to latest main branch 2023-08-14 09:35:36 +01:00
Jon Shallow 76e8b0f029 Coverity: Fix CID 1382587, 1566422-1566493 2023-08-12 14:07:08 +01:00
Jon Shallow ded6d04e1d doc: Fix typos 2023-08-12 14:06:42 +01:00
kkrentz a401a2aea0 Contiki-NG: Switch to secure PRNG 2023-08-07 14:03:10 +01:00
Jon Shallow ef943c93a8 contiki/Makefile: Add in Contiki version check
Set to release/v4.9
2023-08-07 14:01:28 +01:00
Jon Shallow 65f0be894e ESP-IDF: Fix handling broadcast address 2023-07-31 14:16:02 +01:00
Jon Shallow 7146a45fd0 ESP-IDF: Fix non IPv6 builds 2023-07-31 14:15:03 +01:00
Carsten Schoenert 36941566d6 man: Small typo fixes for coap[-client,-oscore]
Typo fixup for
seperator -> separator
particularily -> particularly
2023-07-31 08:54:16 +01:00
Jon Shallow 298a11e222 coap_uri.c: Fix potential buffer overflow
As reported by valgrind
2023-07-29 11:34:40 +01:00
Jon Shallow cd7b5de109 Mutexes: Clean up / simplify use of mutexes
Not all OS implementations properly support static initializations.
2023-07-29 11:31:22 +01:00
Jon Shallow 3f8bb33807 coap_resolve_address_info: Add in support for defining WebSocket ports 2023-07-26 13:01:42 +01:00