Coder Social home page Coder Social logo

Missing DTLS support about gen_coap HOT 11 CLOSED

gotthardp avatar gotthardp commented on June 16, 2024
Missing DTLS support

from gen_coap.

Comments (11)

gotthardp avatar gotthardp commented on June 16, 2024 3

Hello everyone. It looks like DTLS (in some form) may be in Erlang 19. I'm going to give it a try.

from gen_coap.

gotthardp avatar gotthardp commented on June 16, 2024 1

Update: The commit erlang/otp@1e6942e suggests that a beta DTLS (non-production) will be available in Erlang/OTP 19.2, which may be released soon.

from gen_coap.

hachreak avatar hachreak commented on June 16, 2024

Hi, Is it fully implemented now the DTLS in erlang?
Are there any plan to support it on CoAP? :)

from gen_coap.

gotthardp avatar gotthardp commented on June 16, 2024

Hi. I don't think DTLS is supported in Erlang, do you? Once DTLS is in Erlang, I will add it to gen_coap.

from gen_coap.

RoadRunnr avatar RoadRunnr commented on June 16, 2024

@gotthardp you could try https://github.com/RoadRunnr/dtlsex for the moment.

from gen_coap.

hachreak avatar hachreak commented on June 16, 2024

Hi RoadRunnr, I found your PR!
I'd like to use CoAP on my project and use the secure version on top of DTLS, I think, it'll be mandatory.
Can you tell us more about the current implementation state? :)
Thanks

from gen_coap.

hachreak avatar hachreak commented on June 16, 2024

@gotthardp do you think the dtlsex project is usable to use it on gen_coap? (waiting the dtls is integrated on otp)

from gen_coap.

gotthardp avatar gotthardp commented on June 16, 2024

Nope. Doesn't work. The implementation is incomplete.

from gen_coap.

edescourtis avatar edescourtis commented on June 16, 2024

What about now in Erlang 19.1?

commit b0d29cc77f3c8d4d63dabb2f00570b0130f9f175
Merge: 08ff462 01e9582
Author: Ingela Anderton Andin [email protected]
Date: Tue Sep 6 15:49:12 2016 +0200

Merge branch 'ingela/ssl/dtls-progress/connection-states-as-maps' into maint

* ingela/ssl/dtls-progress/connection-states-as-maps:
  dtls: fix encoding of client hello cookie
  dtls: Prepare start of DTLS connection manager with SSL app
  ssl: Refactor to use maps for the connection states
  ssl, dtls: Refactor sni handling
  dtls: Add close/5
  dtls: Add renegotiate/2
  dtls: Add protocol event handling
  ssl: Refactor code so that tls and dtls can share more code
  ssl, dtls: Disable V2 compatibility clause from ssl_handshake:update_handshake_history
  ssl: Make sure common code for TLS and DTLS uses the TLS Version
  ssl: remove unused RecordCB argument from master_secret
  dtls: Add reinit_handshake_data/1 to dtls
  dtls: replace tls_record with RecordCB in connection_info
  Fix version numbers and dependencies

from gen_coap.

gotthardp avatar gotthardp commented on June 16, 2024

I'm aware of this commit. Despite it was never announced DTLS is ready I tried to implement a simple DTLS client just after they made this commit, but I didn't make it work. It was producing strange errors. My feeling is that the implementation is still incomplete. But perhaps I didn't try hard enough.

from gen_coap.

gotthardp avatar gotthardp commented on June 16, 2024

Done in v0.2.0

from gen_coap.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.