Skip to content

Commit bab03c4

Browse files
authored
Merge pull request #2356 from botovq/rm-ec-method
Remove EC_METHOD and EC_GROUP_new for LibreSSL 4.1
2 parents 4f11354 + 36720a5 commit bab03c4

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

openssl-sys/build/cfgs.rs

+3
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ pub fn get(openssl_version: Option<u64>, libressl_version: Option<u64>) -> Vec<&
6868
if libressl_version >= 0x4_00_00_00_0 {
6969
cfgs.push("libressl400");
7070
}
71+
if libressl_version >= 0x4_01_00_00_0 {
72+
cfgs.push("libressl410");
73+
}
7174
} else {
7275
let openssl_version = openssl_version.unwrap();
7376

openssl-sys/build/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ fn main() {
103103
println!("cargo:rustc-check-cfg=cfg(libressl382)");
104104
println!("cargo:rustc-check-cfg=cfg(libressl390)");
105105
println!("cargo:rustc-check-cfg=cfg(libressl400)");
106+
println!("cargo:rustc-check-cfg=cfg(libressl410)");
106107

107108
println!("cargo:rustc-check-cfg=cfg(ossl101)");
108109
println!("cargo:rustc-check-cfg=cfg(ossl102)");

openssl-sys/src/handwritten/ec.rs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pub enum point_conversion_form_t {
99
POINT_CONVERSION_HYBRID = 6,
1010
}
1111

12+
#[cfg(not(libressl410))]
1213
pub enum EC_METHOD {}
1314
pub enum EC_GROUP {}
1415
pub enum EC_POINT {}
@@ -17,6 +18,7 @@ extern "C" {
1718
#[cfg(not(osslconf = "OPENSSL_NO_EC2M"))]
1819
pub fn EC_GF2m_simple_method() -> *const EC_METHOD;
1920

21+
#[cfg(not(libressl410))]
2022
pub fn EC_GROUP_new(meth: *const EC_METHOD) -> *mut EC_GROUP;
2123

2224
pub fn EC_GROUP_free(group: *mut EC_GROUP);

0 commit comments

Comments
 (0)