Commit Graph
2762 Commits
Author SHA1 Message Date
Jon Shallow 3a2d65d2ab pre-commit: Update revision of astyle_py 2024-03-06 11:22:09 +00:00
Jon Shallow f6a9d52ccf Bug fix update to 4.3.4a v4.3.4a 2024-03-05 20:20:11 +00:00
Jon Shallow 0ccb6b58ef coap_oscore.c: Fix parsing OSCORE configuration information 2024-03-05 20:20:11 +00:00
Jon Shallow 713ada410c OpenSSL: Support user defined PKCS11 engine id.
Supported by defining COAP_OPENSSL_PKCS11_ENGINE_ID value through complier /
configure additional parameters which gets passed into ENGINE_by_id().

E.g.

$ ./configure CPPFLAGS=-DCOAP_OPENSSL_PKCS11_ENGINE_ID='\"pkcs11\"'
2024-03-05 20:20:11 +00:00
Jon Shallow 1252ceab84 get_config.sh: Add in script to easily get current build configuration 2024-03-05 20:20:11 +00: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
Jon Shallow 59892918cd coap_resolve_address_info: Simplify conditional OS logic
Handle implementations that do not fill in ai_socktype and hence remove any
duplicate entries.
2023-07-26 10:05:14 +01:00
Jon Shallow f809315bbc coap_ws.c: Unmask server data on oversize header reads 2023-07-26 08:12:31 +01:00
Jon Shallow 46f3d82400 esp-idf: Fix compiler warning 2023-07-25 16:16:52 +01:00
Jon Shallow 084c866c69 coap_startup: Make coap_startup() first function call in examples
This then makes sure that all things libcoap are properly initialized
before use, and coders realize they need to do this.

Note: coap_new_context() continues to make sure that coap_startup()
is invoked if not done previously, but this may be too late.
2023-07-25 13:50:18 +01:00
Jon Shallow 2f98643a09 lwip/Makefile: make sure correct hash is used for tinydtls with tarball build 2023-07-24 13:17:39 +01:00