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