1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/examples/dtls-wolfssl
2019-09-09 18:48:53 +02:00
..
cert.c wolfSSL pkg with examples 2019-09-09 18:48:53 +02:00
dtls-client.c wolfSSL pkg with examples 2019-09-09 18:48:53 +02:00
dtls-server.c wolfSSL pkg with examples 2019-09-09 18:48:53 +02:00
main.c wolfSSL pkg with examples 2019-09-09 18:48:53 +02:00
Makefile wolfSSL pkg with examples 2019-09-09 18:48:53 +02:00
README.md wolfSSL pkg with examples 2019-09-09 18:48:53 +02:00

dtls_wolfssl example

This example shows how to use DTLS with wolfSSL

SOCK vs. Socket

This example is configured to use socks instead of sockets (over GNRC). It's possible to use sockets, which give a more similar approach to the UNIX version of wolfSSL.

Fast configuration (Between RIOT instances)

Prepare the bridge interface linking two tuntap

    ./../../dist/tools/tapsetup/tapsetup --create 2

Testing

Run the server

$ make all; PORT=tap1 make term
> ifconfig

copy the server address

> dtlss

Run the client

$ PORT=tap0 make term
> dtlsc <IPv6's server address[%netif]>

Testing against host endpoints

Riot-to-host can be tested against the DTLS examples provided in the wolfSSL-examples repository.

Boards

Boards that do not support the ../gnrc_networking example are included in the BOARD_INSUFFICIENT_MEMORY, plus the board cc2650stk.