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>
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>
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>