File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments