We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffead9f commit 7fc41a7Copy full SHA for 7fc41a7
dtls/src/flight/flight0.rs
@@ -8,6 +8,7 @@ use super::flight2::*;
8
use super::*;
9
use crate::config::*;
10
use crate::conn::*;
11
+use crate::curve::named_curve::NamedCurve;
12
use crate::error::Error;
13
use crate::extension::*;
14
use crate::handshake::*;
@@ -111,7 +112,12 @@ impl Flight for Flight0 {
111
112
Some(Error::ErrNoSupportedEllipticCurves),
113
));
114
}
- state.named_curve = e.elliptic_curves[0];
115
+ for curve in e.elliptic_curves.iter() {
116
+ if curve != &NamedCurve::Unsupported {
117
+ state.named_curve = *curve;
118
+ break;
119
+ }
120
121
122
Extension::UseSrtp(e) => {
123
if let Ok(profile) = find_matching_srtp_profile(
0 commit comments