1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

107 Commits

Author SHA1 Message Date
Benjamin Valentin
dac5aec0c4 pkg/tinydtls: bump version 2023-12-06 19:07:59 +01:00
Leandro Lanzieri
252ec91782
pkg/tinydtls: allow to set buffer size from application again 2023-08-21 13:45:22 +02:00
bors[bot]
429de92251
Merge #19346 #19512 #19513 #19514
19346: pkg/tinydtls: allow build for AVR r=benpicco a=benpicco



19512: SUBSYSTEMS.md: add jia200x to subsystems r=benpicco a=jia200x



19513: boards/nrf52840dongle/doc: Update nrfutil pointers r=benpicco a=chrysn

### Contribution description

Nordic changed its nrfutil; this change adjust to it.

I'm not fully happy with recommending that tool at all due to its bad quality (see rambling in https://github.com/RIOT-OS/RIOT/issues/19511), but short of soldering on a debug header or touch-probing it with wires it's the only way in to the device. I may later add follow-up recommendations to switch to riotboot, but this now at least fixes the immediate issue.

### Testing procedure

* Look at the updated documentation.

### Issues/PRs references

Closes: https://github.com/RIOT-OS/RIOT/issues/19511

19514: dist/testbed-support: remove obsolete boards from iotlab archi r=benpicco a=aabadie



Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
Co-authored-by: Jose Alamos <jose@alamos.cc>
Co-authored-by: chrysn <chrysn@fsfe.org>
Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
2023-04-26 15:40:08 +00:00
Benjamin Valentin
8af82305a0 pkg/tinydtls: don't require ztimer64
The RIOT integration makes no use of ztimer64, so drop it.
2023-03-06 14:10:07 +01:00
Benjamin Valentin
4a0c5e687f pkg/tinydtls: allow build for AVR 2023-03-04 22:55:56 +01:00
bors[bot]
b0626401d8
Merge #19331
19331: pkg/tinydtls: Adjust defaults r=miri64 a=chrysn

### Contribution description

This adjusts two defaults in tinydtls:

* Default verbosity is set to warning. At the info level, this module produces way more output (several lines per new connection, and even per message) than is common in RIOT.
* If gcoap is used, the buffer size is adjusted to the gcoap buffer size plus overhead. Otherwise, CoAP-over-DTLS works fine until one happens to request larger resources.

### Testing procedure

* Run examples/gcoap_dtls
* Send a CoAP request from outside, eg. with `aiocoap-client 'coaps://[fe80::3c63:beff:fe85:ca96%tapbr0]/.well-known/core' --credentials testserver.json` (where testserver.json is `{"coaps://[fe80::3c63:beff:fe85:ca96%tapbr0]/*": {"dtls": {"psk": {"ascii": "secretPSK"}, "client-identity": {"ascii": "Client_identity"}}}}`).

Before, there are messages shown for every request; now there are none.

Modify `examples/gcoap/server.c` as follows:

```patch
diff --git a/examples/gcoap/server.c b/examples/gcoap/server.c
index bf2315cd01..28e1faac27 100644
--- a/examples/gcoap/server.c
+++ b/examples/gcoap/server.c
`@@` -68,7 +68,7 `@@` static const coap_resource_t _resources[] = {
 };
 
 static const char *_link_params[] = {
-    ";ct=0;rt=\"count\";obs",
+    ";ct=0;rt=\"count\";obs;looooooooooooooooooooooong-attribute=\"loooooooooooooooooooooooooooooong\"",
     NULL
 };
```

The request passes; without this patch, it is stuck in retransmissions until "Network error: Retransmissions exceeded".

### Issues/PRs references

This contributes to making #19289 usable with a minimum level of security. (That module fills up the gcoap buffer to the brim). While the module handles the verbosity as well as it can (occasionally admitting that it lost bytes of output), the previous verbosity produces an infinite stream of stdout data. (But the default should be quiet immaterial of that particular PR).

Co-authored-by: chrysn <chrysn@fsfe.org>
2023-03-02 15:40:31 +00:00
chrysn
f2d5928ee5 dtls, tinydtls: Raise default number of connections 2023-03-02 09:16:22 +01:00
chrysn
f7a83a7edc tinydtls: Reduce default verbosity 2023-03-02 09:16:09 +01:00
chrysn
5d741b9d41 pkg/tinydtls: Set buffer size as required for gcoap 2023-03-02 09:15:51 +01:00
Benjamin Valentin
ff0b97961b pkg/tinydtls: drop libc_gettimeofday 2023-02-25 14:57:40 +01:00
Benjamin Valentin
91998edf80 pkg/tinydtls: bump version 2023-02-25 14:57:39 +01:00
Benjamin Valentin
bb515ab51e pkg/tinydtls: don't set custom log level
tinyDTLS now uses RIOT's log.h
2023-01-21 23:09:32 +01:00
Benjamin Valentin
7deb8eee1a pkg/tinydtls: bump version 2023-01-21 23:06:27 +01:00
Benjamin Valentin
33bff8cb18 pkg/tinydtls: implement sock_dtls_recv_buf_aux() 2023-01-13 00:08:55 +01:00
Benjamin Valentin
3af06a1c3d net/sock/dtls: introduce sock_dtls_sendv_aux() 2022-07-28 13:21:07 +02:00
Benjamin Valentin
8290d4646f pkg/tinydtls: bump version 2022-07-28 13:21:07 +02:00
Benjamin Valentin
f7339e978c pkg/tinydtls: bump version 2022-07-25 22:13:20 +02:00
Martine S. Lenders
76e5201094
pkg/tinydtls: crypto: remove unnecessary usage of malloc() 2022-04-01 09:10:35 +02:00
Hendrik van Essen
d424aaedac pkg/tinydtls: add IPv4 support 2022-03-25 17:19:47 +01:00
Hendrik van Essen
e623133dab pkg/tinydtls: remove unnecessary void casts 2022-03-25 14:30:47 +01:00
Hendrik van Essen
21644234cd pkg/tinydtls: rename condition WITH_RIOT_GNRC to WITH_RIOT_SOCK
Using tinydtls on RIOT OS is not limited to GNRC as network stack.
It is also working with e.g. lwIP, see: https://github.com/RIOT-OS/RIOT/pull/17552
Therefore the name WITH_RIOT_GNRC is misleading.
2022-03-25 14:30:47 +01:00
Martine Lenders
844279fa6b
Merge pull request #17849 from leandrolanzieri/pr/pkg/tinydtls/fix_ep_to_session
pkg/tinydtls/contrib/sock_dtls: fix ep_to_session
2022-03-25 10:58:08 +01:00
Leandro Lanzieri
05db36a3d0
pkg/tinydtls: join IPv6 address and port in addr member 2022-03-25 09:44:44 +01:00
Francisco Molina
0819660303 sys/syscalls: add libc_gettimeofday
Conditionally implement gettimeofday() if module is included, this
avoids including ztimer64 even when not needed
2022-03-24 11:36:49 +01:00
Francisco Molina
a3d58c6dcd pkg/tinydtls/sock_dtls: use ztimer_usec 2022-02-18 13:33:36 +01:00
Francisco Molina
73e7eacf22 pkg/tinydtls/contrib: uncruistify 2022-02-18 13:17:23 +01:00
Francisco Molina
e6822e01ca pkg/tinydtls: migrate to ztimer64_msec 2022-02-09 08:19:16 +01:00
Karl Fessel
af4381db07 pkg/tinydtls: depends on xtimer 2021-12-14 22:53:01 +01:00
Martine Lenders
a2cd5ed903
dtls: set CONFIG_DTLS_PEER_MAX in dtls.h header 2021-10-08 12:10:28 +02:00
Martine Lenders
8f5561d694
tinydtls: sock_dtls: only use ifindex with link-local addresses
For global addresses the out-going interface is typically decided by the
forwarding information base, so _requiring_ the user to set it with
`sock_dtls` is undesirable. This has the caveat, that now on
`sock_udp_send()` in the `_write()` method, the sock does not know via
which network interface to send a packet with a global address, but
again: this is really more a task for the underlying network stack, not
the sock layer.
2021-09-29 14:24:03 +02:00
Leandro Lanzieri
450884acf5
pkg/tinydtls: fix detection of Kconfig usage 2021-09-21 11:57:31 +02:00
benpicco
46323cdaf3
Merge pull request #16624 from benpicco/pkg/tinydtls-bump
pkg/tinydtls: bump version
2021-07-08 16:00:11 +02:00
Benjamin Valentin
def6bf0c03 pkg/tinydtls: bump version
This snapshot is as good as the last one, but it contains some bugfixes.
2021-07-07 15:43:28 +02:00
János Brodbeck
c016b843d6
pkg/tinydtls: destroy session after sending close notification 2021-07-05 23:45:20 +02:00
Leandro Lanzieri
6428505017
net/sock/dtls: allow CREDMAN_TAG_EMPTY on sock creation 2021-04-01 09:47:39 +02:00
Leandro Lanzieri
bccfb6e990
pkg/tinydtls/sock: allow multiple RPK credentials 2021-04-01 09:47:38 +02:00
Leandro Lanzieri
1c1c5f1d36
pkg/tinydtls/sock: allow multiple PSK credentials 2021-04-01 09:47:38 +02:00
Leandro Lanzieri
8b57b87258
net/sock/dtls: add RPK callback for credential selection 2021-04-01 09:47:37 +02:00
Leandro Lanzieri
81892ee389
net/sock/dtls: add client PSK callback for credential selection 2021-04-01 09:47:37 +02:00
Leandro Lanzieri
62fb9ad69f
net/sock/dtls: allow to register multiple credentials into a sock 2021-04-01 09:47:36 +02:00
Leandro Lanzieri
d7440ce1e3
net/sock/dtls: allow to set PSK Identity hint 2021-04-01 09:47:36 +02:00
9bd22dba79
pkg: silent make commands with RIOT_CI_BUILD=1 2021-03-12 16:05:18 +01:00
János Brodbeck
04d95d1c5e
pkg/tinydtls: implement sock_dtls_get_event_session 2021-01-21 19:03:40 +01:00
János Brodbeck
34a15b6540
pkg/tinydtls: implement sock_dtls_session_set_udp_ep 2021-01-04 20:22:57 +01:00
János Brodbeck
4be161c3e7
pkg/tinydtls: implement sock_dtls_session_get_udp_ep 2020-12-21 18:24:22 +01:00
János Brodbeck
387acdfdb5
pkg/tinydtls: remove sock_udp_ep_t from sock_dtls_session_t 2020-12-18 16:41:58 +01:00
Marian Buschsieweke
f222a3f2e9
pkg/tinydtls: Implement sock_aux_local 2020-12-04 16:00:32 +01:00
Marian Buschsieweke
9d46bc7d7f
Merge pull request #14703 from maribu/sock-aux-api
net/sock: Add access to auxiliary data (API only)
2020-12-03 12:08:49 +01:00
Marian Buschsieweke
152ffe6db9
net/sock_dtls: Extend API for auxiliary data 2020-12-02 17:56:14 +01:00
Marian Buschsieweke
ebcf1c0ab4
net/sock_ip: Extend API for auxiliary data 2020-12-02 17:56:13 +01:00