-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for DTLS #5
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
Also make scheme_and_authority_decode return the URL scheme.
There was a problem hiding this 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?
Yes, unfortunately, there is no official tinydtls release yet. |
As with nning/david#16 this is implemented using the
tinydtls
ruby gem. This particular pull request requires the unreleased version0.3.0pre
of the tinydtls rubygem since versions< 0.3.0pre
do not support theMSG_PEEK
recvfrom flag.While we can only support the
PreSharkedKey
mode specified in RFC 7252 with thetinydtls
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