[riot-notifications] [RIOT-OS/RIOT] pkg/tinydtls: add DTLS sock API implementation (#11943)

Aiman Ismail notifications at github.com
Wed Jul 31 11:56:32 CEST 2019

### Contribution description

This PR implements the DTLS sock API introduced in #11909 using tinyDTLS. It adds an example application dtls-sock that follows the same behavior as the existing dtls-echo example.

### Testing procedure

Run the example application using two nodes.

Start a DTLS server on one node and get the IP:
> dtlss start
> ifconfig

Send a message from the other node to the server:
> dtlsc <IP server> <message>

PSK credentials are used by default. To test with ECC credentials, uncomment following line in Makefile:

### Issues/PRs references

Depends on PR #11909.

You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * pkg: add tinydtls implementation of sock_dtls
  * examples: add sock_dtls example application

-- File Changes --

    A examples/dtls-sock/Makefile (67)
    A examples/dtls-sock/README.md (42)
    A examples/dtls-sock/client_keys.h (79)
    A examples/dtls-sock/dtls-client.c (169)
    A examples/dtls-sock/dtls-server.c (219)
    A examples/dtls-sock/main.c (43)
    A examples/dtls-sock/server_keys.h (60)
    M pkg/tinydtls/Makefile.include (10)
    A pkg/tinydtls/contrib/Makefile (3)
    A pkg/tinydtls/contrib/sock_dtls.c (451)
    A pkg/tinydtls/include/sock_dtls_types.h (66)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190731/9117a22e/attachment-0001.htm>

More information about the notifications mailing list