GithubHelp home page GithubHelp logo

dtls's Introduction

Crate moved

As of the 23rd of August 2022 this crate has been migrated to the webrtc-rs/webrtc monorepo.

dtls's People

Contributors

algesten avatar andrepuel avatar data-retriever avatar englishm avatar k0nserv avatar lookback-hugotunius avatar melekes avatar oll3 avatar rainliu avatar robashton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dtls's Issues

DTLS ServerKeyExchange failure

Could anyone help me out here? I am attempting to set up connectivity of a WebRTC-rs client DataChannel with https://github.com/naia-rs/naia-socket ... and it appears that the DTLS handshake is failing on the ServerKeyExchange message given, exactly here: https://github.com/webrtc-rs/dtls/blob/main/src/handshake/handshake_message_server_key_exchange.rs#L114 The message indicates that the incoming signature will be something like ~19000 bytes, but the incoming message size is only ~300 bytes ... curious.

The failing message is created/written by an openssl::SslAcceptor which is created here: https://github.com/kyren/webrtc-unreliable/blob/master/src/crypto.rs#L56

I have created an example repo to demonstrate this behavior here: https://github.com/naia-rs/naia-socket-webrtc-rs-example, you should be able to reproduce this pretty quite using this repo.

I suspect a DTLS version mismatch here? Does anyone know how I can check the version of DTLS being used to read/write messages in both openssl & webrtc-rs/dtls?

Thank you so much for any help!

webrtc-rs main issue: webrtc-rs/webrtc#163
naia-socket issue: https://github.com/naia-rs/naia-socket/issues/56

Checking in on the status of this crate

Thanks for making the effort to port Pion over to Rust 🙏 , it is a massive undertaking. I've been playing around with this crate and ran into an issue with the handshake (can't get past flight 1 as a client), and wanted to rule out any library issues. Have you been able to get this crate working with a handshake from a browser? If so, was it as a client, server, or both (also, which browser)? Would you mind sharing any code you have that you use to validate features (or links to repos that use this crate)? It would be greatly appreciated. Thank you!

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.