Jon Shallow
e3a662a934
wolfSSL: Set up initial port
...
Includes some porting ideas from qursa-uc3m libcoap-wolfssl work.
Some common ASN1 code moved from coap_gnutls.c to coap_asn1.c to support RPK.
WolfSSL build
$ ./configure --enable-all --enable-dtls13 CFLAGS="-DBUILD_TLS_PSK_WITH_AES_128_CCM -DHAVE_RPK"
Interoperability requirements
DTLS1.3 downgrade requires
https://github.com/eclipse/tinydtls/pull/230
https://github.com/wolfSSL/wolfssl/pull/7367
TLS1.3 downgrade requires
https://github.com/wolfSSL/wolfssl/pull/7367
(D)TLS1.2 use of RPK requires
https://github.com/wolfSSL/wolfssl/pull/7375
MbedTLS using TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 requires
https://github.com/wolfSSL/wolfssl/pull/7132
GnuTLS using PSK and TLS1.3 requires
https://github.com/wolfSSL/wolfssl/pull/7407
2024-04-16 11:03:24 +01:00
Jon Shallow
c88c783aea
RIOT: Modify Kconfig / app.config to remove dep model
2024-04-02 21:28:57 +01:00
Jon Shallow
1bde6f6ce6
coap_config.h*: Make the various OS coap_config.h more consistent
...
Add in coap_config.h.contiki.in to aid versioning updates.
Make the PACKAGE_ definitions consistent.
2024-03-14 16:30:26 +00:00
Jon Shallow
547379a4d0
coap_io_process: Handle COAP_IO_WAIT properly
2024-03-14 16:24:31 +00:00
Jon Shallow
e25cf94d2a
RIOT: Update to use SOCK i/f, not Posix
...
Remove all references to Posix functions, using Sock functions as appropriate.
Update coap_address_t to be RIOT specific when doing RIOT builds.
2024-03-12 17:15:01 +00:00
Jon Shallow
852d7371b5
coap-client.c: Correct sending of SNI using localhost for PSK
2024-02-12 14:11:14 +00:00
Jon Shallow
9603622715
coap-client.c: Enable (D)TLS1.3 support for PSK
...
Only set up Identity Hint checks (not available for (D)TLS1.3, and so
forces downgrade to (D)TLS1.2) if -h option is used for the coap-client.
2024-02-12 14:07:46 +00:00
Jon Shallow
5cb998b489
coap-server.c: Fix CID 1583585
2024-02-12 14:06:04 +00:00
Jon Shallow
ebc693fec0
coap-server.c: Fix CID 1583550
2024-02-12 14:03:00 +00:00
slokhorst
b3ba77d66a
Use grep -E instead of deprecated egrep
2024-01-06 13:23:08 +00:00
Jon Shallow
8237c1d801
Copyright: Update to 2024
2024-01-02 08:45:59 +00:00
Jon Shallow
cc1cc1ad27
coap_net.c: Check for invalid PDU class codes
2023-12-27 11:31:26 +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
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
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
26302a076b
coap-server.c: Add in support for output to syslog
2023-10-19 11:26:41 +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
Jon Shallow
0b8005155a
OSCORE interop: Make external interop testing easier
2023-10-13 14:19:12 +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
9cde7cdee1
Update version to release 4.3.3
2023-09-14 09:55:47 +01:00
Jon Shallow
269216eb19
RIOT: Update PKG_VERSION to point to 4.3.2 code
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
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
Jon Shallow
5a9a6cc2c2
RIOT: Update PKG_URL and PKG_VERSION to latest 4.3.2rc2 code
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
ef943c93a8
contiki/Makefile: Add in Contiki version check
...
Set to release/v4.9
2023-08-07 14:01:28 +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
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
Jon Shallow
c35c0783e2
RIOT: Update PKG_URL and PKG_VERSION to latest 4.3.2rc1 code
2023-07-22 09:43:17 +01:00
Jon Shallow
cb78d5fd85
release 4.3.2rc1: Release candidate for 4.3.2
2023-07-22 09:29:32 +01:00
Jon Shallow
e60205e52a
coap_session.c: Report COAP_NACK_ICMP_ISSUE for NON to NACK handler
2023-07-22 09:24:13 +01:00
Jon Shallow
d17f47ab54
coap_address_t: Update functions documentation and add coap_is_af_unix()
2023-07-17 09:43:35 +01:00
Jon Shallow
a71b7930b9
pre-commit: Include re-styled examples files to checks
2023-07-13 09:01:41 +01:00
Jon Shallow
e2910a5bf1
naming: Rename remaining *.[ch] files that are not prefixed with coap_
...
include/coap3/block.h -> include/coap3/coap_block.h
include/coap3/pdu.h -> include/coap3/coap_pdu.h
include/coap3/resource.h -> include/coap3/coap_resource.h
src/block.c -> src/coap_block.c
src/net.c -> src/coap_net.c
src/pdu.c -> src/coap_pdu.c
src/resource.c -> src/coap_resource.c
2023-07-13 08:59:22 +01:00
Jon Shallow
57013f3377
RFC9177: Add in Q-Block support
...
examples/coap-client.c:
examples/coap-server.c:
Add in Q-Block intelligence.
include/coap3/block.h
include/coap3/coap_block_internal.h
include/coap3/coap_event.h
Add in Q-Block references.
Add in new functions
coap_block_check_q_block1_xmit()
coap_block_check_q_block2_xmit()
coap_send_q_blocks()
coap_send_q_block1()
coap_send_q_block2()
coap_block_drop_resp_q_block_xmit()
coap_block_drop_resp_q_block2_crcv()
coap_q_block_is_supported()
include/coap3/coap_session.h:
Add in new Congestion Control defaults and ability to configure them.
include/coap3/pdu.h:
Add in the new options.
libcoap-3.map:
libcoap-3.sym:
Expose external Congestion Control functions.
man/coap-client.txt.in:
man/coap-server.txt.in:
man/coap_block.txt.in:
man/coap_handler.txt.in:
man/coap_recovery.txt.in:
man/coap.txt.in:
Add in Q-Block information.
src/block.c:
Add in the new functions to support Q-Block.
src/coap_debug.c:
Output the new options as appropriate.
src/coap_io.c:
Check for Q-Block transmission timeouts.
src/coap_session.c:
Add in the Congestion Control support.
src/net.c:
src/resource.c:
Add in Q-Block support.
configure.ac
CMakeLists.txt
Add in support for enabling/disabling Q-Block support (enabled by default).
2023-07-11 11:04:04 +01:00
Jon Shallow
f2a03df9a0
pre-commit: Include re-styled RIOT example files to checks
2023-07-06 12:11:38 +01:00
Jon Shallow
3755358b7d
pre-commit: Include re-styled LwIP and Contiki example files to checks
2023-07-06 11:45:47 +01:00
Jon Shallow
a3591eca55
RIOT: Stop objdump analyzing the built examples
2023-07-03 12:00:14 +01:00
Jon Shallow
a9b179ab32
Coding: Remove blank lines at ends of files
2023-06-29 09:34:52 +01:00
Jon Shallow
2f4b8843cd
DTLS Libraries: Replace HAVE_<dtlslib> defines with COAP_WITH_<dtls_lib>
...
Prevents possibility of name clashes when integrating with other code / OS.
2023-06-15 18:54:29 +01:00
Jon Shallow
5c1e7cae34
Async: Invert WITHOUT_ASYNC define to COAP_ASYNC_SUPPORTED for clarity
...
Prevents possibility of name clashes when integrating with other code / OS.
2023-06-15 11:01:22 +01:00