Jon Shallow
e7105286f6
coap_threadsafe.c: Fix NPE in coap_delete_resource()
2023-12-20 10:54:54 +00:00
Jon Shallow
c162187a6a
get_config.sh: Add in script to easily get current build configuration
2023-12-19 16:41:13 +00:00
Jon Shallow
a3ed4665a2
cmake_coap_config.h.in: Add missing HAVE_ definitions
...
HAVE_ entries sorted to aid future additions.
2023-12-13 21:12:58 +00:00
Jon Shallow
b91090d093
coap_net.c: Ignore ACK with request code
2023-12-06 09:50:34 +00:00
Jon Shallow
a141e442b0
coap_block.c: Handle incorrect SZX changes for Block2
2023-11-30 16:51:43 +00:00
Jon Shallow
0f3ae5022d
coap_block.c: Support server setting max block size for Block1/Block2
2023-11-30 16:48:10 +00:00
Jon Shallow
8596191814
configure.ac: Align summary output
2023-11-28 16:57:50 +00:00
Jon Shallow
89d5151ffa
CMakeLists.txt: Correct typos
2023-11-28 16:56:31 +00:00
Jon Shallow
31db05b7f3
Issue: Update Issue template for clarity over configuration details
2023-11-28 13:45:18 +00:00
Jon Shallow
afbac63b28
block.c: Report 4.08 for missing Block1 chunks of data
...
Not applied to RFC9177 Q-Block1 missing blocks which are handled in
a different way.
2023-11-25 11:43:52 +00:00
Jon Shallow
9d15f7edc4
block.c: Add in additional SZX invalid checks
2023-11-25 11:42:49 +00:00
Jon Shallow
c69c5d5af0
multi-thread: Add in thread safe support
...
Optional compile time thread safe code supported.
Locking is done at the coap_context_t level, and if enabled is primarily
done coap_threadsafe.c and coap_threadsafe_internal.h.
coap_threadsafe_internal.h causes coap_X() to get mapped to coap_X_locked()
throughout the libcoap library code with the exception of coap_threadsafe.c
if thread safe is enabled.
2023-11-25 11:41:26 +00:00
Jon Shallow
6b4fac968d
PKI: Document intermediate CAs
...
Correct some typos
2023-11-20 11:27:58 +00:00
Jon Shallow
2e7cb35c01
WebSocket: Add support for noTLS and TinyDTLS
...
Use SHA1 code from RFC3174 sections 7.1 and 7.2.
2023-11-15 10:06:44 +00:00
Jon Shallow
805d148dd0
LwIP: Support TCP
...
If LWIP_TCP is set, then CoAP TCP support is compiled in.
2023-11-11 10:24:08 +00:00
Jon Shallow
fa88e3235b
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\"'
2023-11-11 10:05:44 +00:00
kkrentz
3b246dfe73
OSCORE: Treat CoAP pings as requests
2023-11-07 16:18:07 +00:00
chengshq
1456d9aa0d
Fix inconsistent tokens received by other servers
...
When use `coap-client` with -T command, the other server received inconsistent.
```
coap-client send token "aaa", the other server received "aab"
coap-client send token "obstoken", the other server received "obstokeo"
```
2023-11-07 09:26:27 +00:00
Kamil Panek
ecc55544d6
coap_debug.c: reset all globals in coap_debug_reset
2023-11-03 13:32:52 +00:00
kkrentz
b2c3ca3b89
coap_net.c: Reuse coap_option_filter_clear in coap_dispatch
2023-11-03 11:29:51 +00:00
kkrentz
ae4c5c7ad0
OSCORE: Account for pseudo-token to prevent coap_pdu_resize
2023-11-03 11:28:55 +00:00
Jon Shallow
e602adeb3b
pre-commit: Update revision of astyle_py
2023-10-27 11:42:24 +01:00
Jon Shallow
50b5f29133
coap_ws.c: Combine header and data in output from coap_ws_write()
2023-10-27 10:30:55 +01:00
Jon Shallow
17e44c73df
memory: Support debug tracking of memory usage
...
New function coap_dump_memory_type_counts().
Requires COAP_MEMORY_TYPE_TRACK to be defined as 1.
2023-10-24 12:43:13 +01:00
Jon Shallow
7688258c39
coap_response_handler: Tidy up sent parameter
...
sent PDU passed to a response handler is now reset to initial sent PDU
(token restored, Block options removed), but some or all of original
data may be missing if Block operations were needed for the request or
the repsonse.
Updated documentation to reflect this.
2023-10-23 14:49:31 +01:00
Jon Shallow
203d228638
RIOT: library fixes for different build types
...
coap_debug.h: Support logging level set to _COAP_LOG_EMERG
coap_pdu.h: handle small ints
coap_pdu_internal.h: handle small ints
coap_session_internal.h: handle small ints
coap_uthash_internal.h: handle small ints
coap_block.c: Handle small ints
coap_debug.c: Fix use of vsnprintf() and vfprintf()
coap_pdu.c: Handle small ints
coap_tinydtls.c: Handle small ints
coap_uri.c: Fix alignment issue in coap_new_uri()
uncrustify run on RIOT examples to conform to RIOT's coding standards/
2023-10-23 14:38:57 +01:00
Jon Shallow
05d02be7a9
coap_net.c: Fix CSM timeouts in coap_client_delay_first()
...
Reduce timeout to 1 second and enter established state for servers that
only partially implement RFC8323 for TCP support, but do not send a CSM.
Add new coap_context_set_csm_timeout_ms() to control the value of the timeout.
2023-10-23 14:32:46 +01:00
Jon Shallow
adcc8e8334
coap_address.c: Fix IPv4 broadcast checks
2023-10-19 16:05:28 +01:00
kkrentz
6addbef1b1
Suppress RST when the processing of a non-empty ACK fails
2023-10-19 15:00:24 +01:00
Jon Shallow
bb1a635707
CMakeLists.txt: Correct typos
2023-10-19 11:58:34 +01:00
Jon Shallow
26302a076b
coap-server.c: Add in support for output to syslog
2023-10-19 11:26:41 +01:00
Jon Shallow
95faeac5bb
pdu: Make sure type is set to CON if Reliable
2023-10-19 11:02:13 +01:00
Jon Shallow
cd1a7de0f2
coap_address.c: Broadcast address cannot be local IP address
2023-10-19 10:39:10 +01:00
Jon Shallow
48753b155b
Stateless: Add in some stateless support
...
Client able to send data for every FETCH command to get next Block2 response.
Server able to not keep state while sending Block2 responses back.
2023-10-19 10:33:17 +01:00
kkrentz
38a726de37
Contiki-NG: Remove call to clock_init as Contiki-NG already does it
2023-10-19 10:19:32 +01:00
Jon Shallow
c7186168ff
PKI: report on insecure certificates
2023-10-13 14:20:51 +01:00
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