From 62578357574f62325e1987f0dbcdd70ce3be236f Mon Sep 17 00:00:00 2001 From: phoebe jenkins Date: Mon, 23 Oct 2017 13:56:39 -0400 Subject: Add support for LibreSSL 2.6.3 --- openssl-sys/build.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'openssl-sys/build.rs') diff --git a/openssl-sys/build.rs b/openssl-sys/build.rs index 34b74f82..b0163834 100644 --- a/openssl-sys/build.rs +++ b/openssl-sys/build.rs @@ -316,8 +316,10 @@ fn validate_headers(include_dirs: &[PathBuf]) -> Version { #include #include -#if LIBRESSL_VERSION_NUMBER >= 0x20603000 +#if LIBRESSL_VERSION_NUMBER >= 0x20604000 RUST_LIBRESSL_NEW +#elif LIBRESSL_VERSION_NUMBER >= 0x20603000 +RUST_LIBRESSL_263 #elif LIBRESSL_VERSION_NUMBER >= 0x20602000 RUST_LIBRESSL_262 #elif LIBRESSL_VERSION_NUMBER >= 0x20601000 @@ -475,6 +477,13 @@ See rust-openssl README for more information: println!("cargo:libressl_version=262"); println!("cargo:version=101"); Version::Libressl + } else if expanded.contains("RUST_LIBRESSL_263") { + println!("cargo:rustc-cfg=libressl"); + println!("cargo:rustc-cfg=libressl263"); + println!("cargo:libressl=true"); + println!("cargo:libressl_version=263"); + println!("cargo:version=101"); + Version::Libressl } else if expanded.contains("RUST_OPENSSL_110F") { println!("cargo:rustc-cfg=ossl110"); println!("cargo:rustc-cfg=ossl110f"); -- cgit v1.2.3