Closed neonphog closed 2 years ago
@rainliu I'll leave this review for you since you have more context than me(who has zero).
I couldn't figure a good way to add any test code to this
Have you looked into Pion https://github.com/pion/dtls?
I couldn't figure a good way to add any test code to this
Have you looked into Pion https://github.com/pion/dtls?
https://github.com/pion/dtls/blob/master/conn_test.go#L1485-L1487
&extension.SupportedEllipticCurves{
EllipticCurves: []elliptic.Curve{elliptic.X25519, elliptic.P256, elliptic.P384},
},
Near as I can tell, pion also always tests with all extensions enabled and therefore only ever tests X25519...
We have migrated this crate to the monorepo(webrtc-rs/webrtc) please re-open this pull request over there.
@k0nserv
We have migrated this crate to the monorepo(webrtc-rs/webrtc) please re-open this pull request over there.
related: https://github.com/webrtc-rs/webrtc/issues/24
I had to bump p256 version also due to a shared dependency, which changed some of the api / error types. I couldn't figure a good way to add any test code to this, given the pretty hard-coded X25519 at the moment, but let me know if you have any suggestions.