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
Martine Lenders
ef5e0344ef
tinydtls_sock_dtls: use new mbox_avail() function
2020-11-20 13:09:59 +01:00
János Brodbeck
2538e72625
pkg/tinydtls: set endpoint of session after complete handshake
2020-11-16 13:50:15 +01:00
János Brodbeck
958d604775
pkg/tinydtls: set address family of session endpoint on sock_dtls_recv
2020-11-10 03:11:20 +01:00
Bas Stottelaar
9dd3b7a3ec
pkg/*: replace #if ENABLE_DEBUG with IS_ACTIVE
2020-11-02 21:49:39 +01:00
cf823da856
pkg/tinydtls: remove deprecation message about some CFLAGS
2020-10-30 10:15:18 +01:00
Bas Stottelaar
38a5ff7d4b
pkg/*: realign ENABLE_DEBUG
2020-10-23 02:43:10 +02:00
Bas Stottelaar
970c72a0cb
pkg/*: add missing include of assert.h
2020-10-22 11:13:08 +02:00
János Brodbeck
ffb80ab6b6
tinydtls: fix minor typo in comment
2020-10-10 13:05:46 +02:00
benpicco
df913bf9bf
Merge pull request #14906 from miri64/sock/cleanup/deps
...
sock: cleanup dependencies
2020-09-09 12:01:28 +02:00
Martine S. Lenders
8386ec9fac
sock: make sock implementation dependency of sock API + stack
...
This is the logical continuation of [#12931 ] for _all_ `sock`
implementations.
[#12931 ]: https://github.com/RIOT-OS/RIOT/pull/12931
2020-08-31 15:17:22 +02:00
Leandro Lanzieri
d25fc243c4
treewide: change prefix for generated Kconfig symbols.
...
This changes the prefixes of the symbols generated from USEMODULE and
USEPKG variables. The changes are as follow:
KCONFIG_MODULE_ => KCONFIG_USEMODULE_
KCONFIG_PKG_ => KCONFIG_USEPKG_
MODULE_ => USEMODULE_
PKG_ => USEPKG_
2020-08-31 09:37:09 +02:00
Leandro Lanzieri
531367a9a2
pkg/tinydtls: enforce the selection of a crypto secure PRNG
...
Also add a sanity checks on the prng_ modules.
2020-08-21 08:39:34 +02:00
Benjamin Valentin
7d54fe1662
pkg/tinydtls: default to sha1prng for the PRNG implementation
2020-07-07 21:06:12 +02: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
Martine Lenders
4013c616f7
tinydtls: add sock_async
support for sock_dtls
2020-06-18 15:40:41 +02:00
M Aiman Ismail
44f2f50c89
tinydtls_sock_dtls: don't put alert & EVENT_CONNECT in mbox
2020-06-18 14:14:12 +02:00
M Aiman Ismail
2e16b90b38
tinydtls_sock_dtls: save session information after data decrypted
2020-06-18 14:04:51 +02:00
198c9a8990
pkg/tinydtls: cleanup build system integration
2020-06-10 14:15:19 +02:00