Commit Graph

5 Commits

Author SHA1 Message Date
Jon Shallow
cd02cad6c3 LwIP: Support LwIP builds when NO_SYS = 1
Follow the model of how things are done for Contiki.

Set up a new WITH_LWIP_NO_SOCKET (which happens with NO_SYS = 1)
and use this when setting up addresses.

Add in platform specific for dtls_prng_lwip.c and lwip_platform.h

Update dtls_time.[ch] to handle LWIP version of time.

Code works for NO_SYS = 1 or NO_SYS = 0.

Signed-off-by: Jon Shallow <supjps-libcoap@jpshallow.com>
2022-10-21 16:30:16 +02:00
Jan Romann
9320251212 Add Windows support 2022-09-27 14:31:54 +02:00
Achim Kraus
16d3764191 Support zephyr.
Add initial support for zephyr.
Mutex is currently not supported, nor used.

Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
2022-07-08 14:51:05 +02:00
Olaf Bergmann
9a34961196 dtls_prng.c: Rely on automatic include of dtls_config.h
As Contiki and RIOT do not generate dtls_config.h it should not
be included directly but through tinydtls.h only.

Change-Id: I684f60b7685fc8eae3e81d73bcdade6a28522a28
Signed-off-by: Olaf Bergmann <bergmann@tzi.org>
2019-03-21 14:32:59 +01:00
Jon Shallow
5f32f03d95 Move prng functions into separate platform specific functions
This allows for optimizing the prng functions for specific platforms and
makes integration with IoT build environments a lot simpler.

Makefile.in
Makefile.riot
Makefile.tinydtls
crypto.c
dtls.c
dtls_prng.c (new)
dtls_prng.h
platform-specific/Makefile.in
platform-specific/dtls_prng_contiki.c (new)
platform-specific/dtls_prng_espidf.c (new)
platform-specific/dtls_prng_posix.c (new)
platform-specific/dtls_prng_riot.c (new)

Separate out all the old #ifdefs and put the code into the appropriate
places.
Add in the new files to the build process

Change-Id: I955315defd55fd3db2dc58fd88c7aa283e3b9984
Signed-off-by: Jon Shallow <supjps-libcoap@jpshallow.com>
Signed-off-by: Olaf Bergmann <bergmann@tzi.org>
2019-03-21 14:22:30 +01:00