We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 893ce6a commit 70017d1Copy full SHA for 70017d1
openssl/src/nid.rs
@@ -1112,6 +1112,12 @@ impl Nid {
1112
///
1113
/// assert!(Nid::AES_256_GCM.as_raw() == 901);
1114
/// assert!(NegotiatedGroup::from_raw(901).nid() == Some(Nid::AES_256_GCM));
1115
+/// assert!(NegotiatedGroup::from_raw(901).unknown_group_id() == None);
1116
+///
1117
+/// let bogus_id: i32 = 0x6399;
1118
+/// let raw = bogus_id | NegotiatedGroup::TLSEXT_nid_unknown;
1119
+/// assert!(NegotiatedGroup::from_raw(raw).unknown_group_id() == Some(bogus_id));
1120
+/// assert!(NegotiatedGroup::from_raw(raw).nid() == None);
1121
/// ```
1122
1123
/// # External Documentation
0 commit comments