diff options
Diffstat (limited to 'openssl-sys/build.rs')
| -rw-r--r-- | openssl-sys/build.rs | 11 |
1 files changed, 10 insertions, 1 deletions
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 <openssl/opensslv.h> #include <openssl/opensslconf.h> -#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"); |