Skip to content

Commit 1c07bef

Browse files
committed
EC_GROUP_get_asn1_flag
1 parent 5c0acda commit 1c07bef

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

boring/src/ec.rs

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,19 @@ impl EcGroupRef {
204204
}
205205
}
206206

207-
/// Sets the flag determining if the group corresponds to a named curve or must be explicitly
208-
/// parameterized.
209-
///
210-
/// This defaults to `EXPLICIT_CURVE` in OpenSSL 1.0.1 and 1.0.2, but `NAMED_CURVE` in OpenSSL
211-
/// 1.1.0.
207+
/// Returns [`Asn1Flag::NAMED_CURVE`].
208+
#[doc(hidden)]
209+
#[deprecated(note = "BoringSSL always returns `OPENSSL_EC_NAMED_CURVE`")]
210+
#[corresponds(EC_GROUP_get_asn1_flag)]
211+
#[must_use]
212+
pub fn asn1_flag(&self) -> Asn1Flag {
213+
unsafe { Asn1Flag(ffi::EC_GROUP_get_asn1_flag(self.as_ptr())) }
214+
}
215+
216+
/// No-op
217+
#[doc(hidden)]
218+
#[deprecated(note = "Ignored in BoringSSL")]
219+
#[corresponds(EC_GROUP_set_asn1_flag)]
212220
pub fn set_asn1_flag(&mut self, flag: Asn1Flag) {
213221
unsafe {
214222
ffi::EC_GROUP_set_asn1_flag(self.as_ptr(), flag.0);

0 commit comments

Comments
 (0)