coap
coap copied to clipboard
Add support for DTLS
As with https://github.com/nning/david/pull/16 this is implemented using the tinydtls
ruby gem. This particular pull request requires the unreleased version 0.3.0pre
of the tinydtls rubygem since versions < 0.3.0pre
do not support the MSG_PEEK
recvfrom flag.
While we can only support the PreSharkedKey
mode specified in RFC 7252 with the tinydtls
rubygem. I believe that this is a step in the right direction. Support for this DTLS mode in the coap gem would also allow writing tests for https://github.com/nning/david/pull/16.
Contrarry to https://github.com/nning/david/pull/16 the changes made here are not considered WIP and could imho be merged as is.
CC: @obgm