Add #[cfg(ossl110)]
This commit is contained in:
parent
6d6429237d
commit
258c49a581
|
|
@ -61,6 +61,7 @@ extern "C" {
|
||||||
|
|
||||||
pub fn EC_GROUP_get_degree(group: *const EC_GROUP) -> c_int;
|
pub fn EC_GROUP_get_degree(group: *const EC_GROUP) -> c_int;
|
||||||
|
|
||||||
|
#[cfg(ossl110)]
|
||||||
pub fn EC_GROUP_order_bits(group: *const EC_GROUP) -> c_int;
|
pub fn EC_GROUP_order_bits(group: *const EC_GROUP) -> c_int;
|
||||||
|
|
||||||
pub fn EC_GROUP_new_curve_GFp(
|
pub fn EC_GROUP_new_curve_GFp(
|
||||||
|
|
|
||||||
|
|
@ -233,6 +233,7 @@ impl EcGroupRef {
|
||||||
/// OpenSSL documentation at [`EC_GROUP_order_bits`]
|
/// OpenSSL documentation at [`EC_GROUP_order_bits`]
|
||||||
///
|
///
|
||||||
/// [`EC_GROUP_order_bits`]: https://www.openssl.org/docs/man1.1.0/crypto/EC_GROUP_order_bits.html
|
/// [`EC_GROUP_order_bits`]: https://www.openssl.org/docs/man1.1.0/crypto/EC_GROUP_order_bits.html
|
||||||
|
#[cfg(ossl110)]
|
||||||
pub fn order_bits(&self) -> u32 {
|
pub fn order_bits(&self) -> u32 {
|
||||||
unsafe { ffi::EC_GROUP_order_bits(self.as_ptr()) as u32 }
|
unsafe { ffi::EC_GROUP_order_bits(self.as_ptr()) as u32 }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue