aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOssi Herrala <[email protected]>2018-04-02 13:48:26 +0000
committerOssi Herrala <[email protected]>2018-04-02 13:48:26 +0000
commit03c6bcc159c5b987779da4f01c6f76bd77a13ce3 (patch)
treefb4f47d3c67f95be9183c446d210246f64bded7c
parentAdd support for LibreSSL 2.7.1 (diff)
downloadrust-openssl-03c6bcc159c5b987779da4f01c6f76bd77a13ce3.tar.xz
rust-openssl-03c6bcc159c5b987779da4f01c6f76bd77a13ce3.zip
Add LibreSSL 2.7.2
-rw-r--r--openssl-sys/build.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/openssl-sys/build.rs b/openssl-sys/build.rs
index d94261a2..d3c158c8 100644
--- a/openssl-sys/build.rs
+++ b/openssl-sys/build.rs
@@ -325,8 +325,10 @@ fn validate_headers(include_dirs: &[PathBuf]) -> Version {
#if LIBRESSL_VERSION_NUMBER >= 0x20800000
RUST_LIBRESSL_NEW
-#elif LIBRESSL_VERSION_NUMBER >= 0x20702000
+#elif LIBRESSL_VERSION_NUMBER >= 0x20703000
RUST_LIBRESSL_27X
+#elif LIBRESSL_VERSION_NUMBER >= 0x20702000
+RUST_LIBRESSL_272
#elif LIBRESSL_VERSION_NUMBER >= 0x20701000
RUST_LIBRESSL_271
#elif LIBRESSL_VERSION_NUMBER >= 0x20700000
@@ -493,6 +495,13 @@ See rust-openssl README for more information:
println!("cargo:libressl_version=271");
println!("cargo:version=101");
Version::Libressl
+ } else if expanded.contains("RUST_LIBRESSL_272") {
+ println!("cargo:rustc-cfg=libressl");
+ println!("cargo:rustc-cfg=libressl27");
+ println!("cargo:libressl=true");
+ println!("cargo:libressl_version=272");
+ println!("cargo:version=101");
+ Version::Libressl
} else if expanded.contains("RUST_LIBRESSL_27X") {
println!("cargo:rustc-cfg=libressl");
println!("cargo:rustc-cfg=libressl27");