[riot-notifications] [RIOT-OS/RIOT] sys: new sock submodule for DTLS (#11909)

Aiman Ismail notifications at github.com
Wed Jul 24 17:04:11 CEST 2019

### Contribution description

This PR is part 2 of the PR series to introduce a new DTLS sock module in RIOT.

The module introduces a new sock type `sock_dtls`. Similar to the TCP/UDP sock, `sock_dtls` needs to be implemented separately for each underlying DTLS implementation.

This PR also contains an implementation of the API using tinyDTLS, introducing the new module `tinydtls_sock_dtls` which can be found under `pkg/tinydtls/contrib`.

### Testing procedure

Example code for an echo server is provided at `examples/dtls-sock`. Tested on `native` and `samr21-xpro` using two nodes, one server, and one client.

Using ECC credentials is a bit iffy currently. It works, but takes too long (>10s) to send and receive the data. Probably the same problem as #11859.

### Issues/PRs references

Depends on #11564
Previous discussion #10897

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


-- Commit Summary --

  * sys/net/sock: add sock_dtls API
  * pkg: add tinydtls implementation of sock_dtls
  * examples: add sock_dtls example application

-- File Changes --

    M Makefile.dep (10)
    A examples/dtls-sock/Makefile (69)
    A examples/dtls-sock/README.md (42)
    A examples/dtls-sock/client_keys.h (79)
    A examples/dtls-sock/dtls-client.c (174)
    A examples/dtls-sock/dtls-server.c (224)
    A examples/dtls-sock/main.c (53)
    A examples/dtls-sock/server_keys.h (60)
    M makefiles/pseudomodules.inc.mk (1)
    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 (64)
    M sys/auto_init/auto_init.c (8)
    M sys/include/net/sock.h (1)
    A sys/include/net/sock/dtls.h (185)

-- 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/20190724/ad1b5cf9/attachment-0001.htm>

More information about the notifications mailing list