diff options
| author | Marc-Antoine Perennou <[email protected]> | 2017-09-14 11:56:36 +0200 |
|---|---|---|
| committer | Marc-Antoine Perennou <[email protected]> | 2017-09-14 11:56:36 +0200 |
| commit | af370cf9b7630292c552db55513c063959961fd1 (patch) | |
| tree | 89304939be37b4da3f2429f70909562594e8bd37 /openssl-sys | |
| parent | Fix build note for MinGW (diff) | |
| download | rust-openssl-af370cf9b7630292c552db55513c063959961fd1.tar.xz rust-openssl-af370cf9b7630292c552db55513c063959961fd1.zip | |
openssl-sys: support libressl 2.6.1
Signed-off-by: Marc-Antoine Perennou <[email protected]>
Diffstat (limited to 'openssl-sys')
| -rw-r--r-- | openssl-sys/build.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/openssl-sys/build.rs b/openssl-sys/build.rs index df530032..5071cbd4 100644 --- a/openssl-sys/build.rs +++ b/openssl-sys/build.rs @@ -307,8 +307,10 @@ fn validate_headers(include_dirs: &[PathBuf]) -> Version { #include <openssl/opensslv.h> #include <openssl/opensslconf.h> -#if LIBRESSL_VERSION_NUMBER >= 0x20601000 +#if LIBRESSL_VERSION_NUMBER >= 0x20602000 RUST_LIBRESSL_NEW +#elif LIBRESSL_VERSION_NUMBER >= 0x20601000 +RUST_LIBRESSL_261 #elif LIBRESSL_VERSION_NUMBER >= 0x20600000 RUST_LIBRESSL_260 #elif LIBRESSL_VERSION_NUMBER >= 0x20506000 @@ -441,6 +443,12 @@ See rust-openssl README for more information: println!("cargo:libressl=true"); println!("cargo:version=101"); Version::Libressl + } else if expanded.contains("RUST_LIBRESSL_261") { + println!("cargo:rustc-cfg=libressl"); + println!("cargo:rustc-cfg=libressl261"); + println!("cargo:libressl=true"); + println!("cargo:version=101"); + Version::Libressl } else if expanded.contains("RUST_OPENSSL_110F") { println!("cargo:rustc-cfg=ossl110"); println!("cargo:rustc-cfg=ossl110f"); |