We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7615c8 commit 762f502Copy full SHA for 762f502
1 file changed
src/constants.rs
@@ -146,8 +146,7 @@ pub fn named_group_to_nid(group: NamedGroup) -> Option<c_int> {
146
FFDHE4096 => Some(NID_FFDHE4096),
147
FFDHE6144 => Some(NID_FFDHE6144),
148
FFDHE8192 => Some(NID_FFDHE8192),
149
- Unknown(id) => Some(TLSEXT_NID_UNKNOWN | id as c_int),
150
- _ => None,
+ other => Some(TLSEXT_NID_UNKNOWN | u16::from(other) as c_int),
151
}
152
153
0 commit comments