Commit 36720a54 authored by Theo Buehler's avatar Theo Buehler
Browse files

Remove EC_METHOD and EC_GROUP_new for LibreSSL 4.1

parent 4f113546
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -68,6 +68,9 @@ pub fn get(openssl_version: Option<u64>, libressl_version: Option<u64>) -> Vec<&
        if libressl_version >= 0x4_00_00_00_0 {
            cfgs.push("libressl400");
        }
        if libressl_version >= 0x4_01_00_00_0 {
            cfgs.push("libressl410");
        }
    } else {
        let openssl_version = openssl_version.unwrap();

+1 −0
Original line number Diff line number Diff line
@@ -103,6 +103,7 @@ fn main() {
    println!("cargo:rustc-check-cfg=cfg(libressl382)");
    println!("cargo:rustc-check-cfg=cfg(libressl390)");
    println!("cargo:rustc-check-cfg=cfg(libressl400)");
    println!("cargo:rustc-check-cfg=cfg(libressl410)");

    println!("cargo:rustc-check-cfg=cfg(ossl101)");
    println!("cargo:rustc-check-cfg=cfg(ossl102)");
+2 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ pub enum point_conversion_form_t {
    POINT_CONVERSION_HYBRID = 6,
}

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

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

    pub fn EC_GROUP_free(group: *mut EC_GROUP);