mirror of
https://github.com/eclipse/tinydtls.git
synced 2025-10-14 03:10:09 +08:00
40d863c1159a14a6fcb79e56bb6e515c320e5716

In general the handshake state machine forces the handshakes to go through a defined order. But optional handshake message are not controlled by that. This fix introduces a optional handshake message field. This new field enables the state-machine to check if this message is (optionally) expected. When processed, the field is reset and receiving the optional message twice will therefore fail the handshake. Fixes: Issue #78 Signed-off-by: Achim Kraus <achim.kraus@bosch.io>
CONTENTS This library contains functions and structures that can help constructing a single-threaded UDP server with DTLS support in C99. The following components are available: * dtls Basic support for DTLS with pre-shared key mode and RPK mode with ECC. * tests The subdirectory tests contains test programs that show how each component is used. BUILDING When using the code from the git repository at sourceforge, invoke $ autoconf $ autoheader $ ./configure or if there is an update to configure.ac $ autoreconf --force --install $ ./configure to re-create the configure script. ## Contiki On Contiki, place the tinydtls library into the apps folder. After configuration, invoke make to build the library and associated test programs. To add tinydtls as Contiki application, drop it into the apps directory and add the following line to your Makefile: APPS += tinydtls/aes tinydtls/sha2 tinydtls/ecc tinydtls ## RIOT On RIOT, you need to add the line `USEPKG += tinydtls`. You can use `RIOT/examples/dtls-echo/` as a guide for integrating tinyDTLS to your application. Also, if you need a specific commit of tinyDTLS you can modify `RIOT/pkg/tinydtls/Makefile`.
Description
Languages
C
93.9%
Makefile
1.9%
CMake
1.9%
Perl
1.6%
M4
0.6%