Skip to content

Add support for DTLS#5

Open
nmeum wants to merge 5 commits intonning:masterfrom
ruby-dtls:dtls-support
Open

Add support for DTLS#5
nmeum wants to merge 5 commits intonning:masterfrom
ruby-dtls:dtls-support

Conversation

@nmeum
Copy link

@nmeum nmeum commented Aug 29, 2018

As with nning/david#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 nning/david#16.

Contrarry to nning/david#16 the changes made here are not considered WIP and could imho be merged as is.

CC: @obgm

Copy link
Author

@nmeum nmeum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EDIT: Never mind, I just went ahead and adjusted the regex to parse the URI.

The change made in 6886015 is not strictly necessary. It would also be possible to extract the scheme using the regex, however, I was to lazy to adjust the regex and I believe that it is cleaner to use the URI module.

@coveralls
Copy link

coveralls commented Aug 29, 2018

Coverage Status

Coverage increased (+1.4%) to 93.878% when pulling ddcea0b on ruby-dtls:dtls-support into 20d9ce3 on nning:master.

Copy link
Owner

@nning nning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is still a pre-release version of tinydtls required?

@obgm
Copy link

obgm commented Jan 21, 2019

Yes, unfortunately, there is no official tinydtls release yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants