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

30 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
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
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
7deb8eee1a pkg/tinydtls: bump version 2023-01-21 23:06:27 +01: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
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
9bd22dba79
pkg: silent make commands with RIOT_CI_BUILD=1 2021-03-12 16:05:18 +01:00
Benjamin Valentin
6dcb25de15 pkg/tinydtls: bump version 2020-07-07 21:05:39 +02:00
385ad95701
pkg: adapt 'simple' packages to the new organization 2020-06-26 09:25:43 +02:00
198c9a8990
pkg/tinydtls: cleanup build system integration 2020-06-10 14:15:19 +02:00
Gaëtan Harter
ca5d13cc2a pkg/*: adapt to new state file targets
Prepare for handling pkg state with files. So it requires having the
path defined before declaring targets. In addition, it cleans up the
old git-download target.
2020-01-08 20:55:19 +01:00
Sebastian Meiling
c04b80ecbb pkg/tinydtls: bump version
This version bump fixes an issues when using RIOT native on FreeBSD with
the tinydtls package, e.g. for native tests of sock_dtls.
2019-12-12 15:57:51 +01:00
Aiman Ismail
1900563ec6 pkg/tinydtls: bump package version
This pulls in commit 865ca387cd9d05e52943e5641ad0eefafef218a3 which
fixes #12351.
2019-10-21 13:24:35 +02:00
ce9b1e3826 pkg: remove not needed git-downloaded dependencies
This is implicitly done by the "pkg-prepare"-step of the main make
instance.
2019-06-28 09:38:44 +02:00
Olaf Bergmann
542701f3fd [tinydtls] Makefile: Updated package to head of develop branch
[tinydtls] Makefile: Updated PKG_URL

The tinydtls repository has moved from Eclipse Gerrit to GitHub [1].
PKG_URL now points to the new direction and PKG_VERSION was updated
to the HEAD of the develop branch.

[1] https://github.com/eclipse/tinydtls.git
2019-03-27 10:04:26 +01:00
Martine Lenders
0a5acd91cf pkg: tinydtls: ignore -Wformat-nonliteral 2018-08-03 17:56:34 +02:00
Raul Fuentes
61f56ddb14 pkg/tinydtls: Moving to official repository
The integration of TinyDTLS for RIOT has been merged into the
development branch of the official repository.

It will be officially available on the master branch in the next
release of tinyDTLS.

Other minor updates:
- Support for the RIOT's memarray
- tinydtls/sha2 is removed from the compilation for giving priority
to RIOT's sha2 functions.
2018-07-04 11:33:58 +02:00
smlng
16d3225da0 pkg/tinydtls: fix for arm-none-eabi newlib 2.4.x 2018-02-09 20:56:21 +01:00
smlng
2608bc50c4 pkg: disable implicit fallthroughs errors in tinydtls 2018-01-16 10:56:50 +01:00
7142a273dd pkg/*: put $(MAKE) in quotes in all packages 2017-12-18 14:53:54 +01:00
smlng
ece74000d2 pkg/tinydtls: bump version to fix compiler issues 2017-11-14 16:26:35 +01:00
9700e96202 pkg: tinydtls: add license information, cleanup 2017-01-09 00:49:34 +01:00
Martine Lenders
21c4cb41ff tinydtls: fix for build system fix 2016-11-04 16:20:53 +01:00
Raul Fuentes
cf64aba1c8 TinyDTLS: integration into RIOT (without sockets)
Support for TinyDTLS (0.8.6) is added together an example at 'examples/dtls-echo'.
2016-10-30 18:05:25 +01:00