diff options
| author | Christopher Vittal <[email protected]> | 2017-10-03 23:53:50 -0400 |
|---|---|---|
| committer | Christopher Vittal <[email protected]> | 2017-10-03 23:59:33 -0400 |
| commit | e0efd1d438fbf426a7e1006e4983b0f352c630f6 (patch) | |
| tree | 626c6643d3b39e115cc5f43b330c688daf86e18a /openssl-sys | |
| parent | Merge pull request #743 from AndyGauge/doc-asn1 (diff) | |
| download | rust-openssl-e0efd1d438fbf426a7e1006e4983b0f352c630f6.tar.xz rust-openssl-e0efd1d438fbf426a7e1006e4983b0f352c630f6.zip | |
Add support for LibreSSL 2.6.2
Diffstat (limited to 'openssl-sys')
| -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 4848f236..34b74f82 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 >= 0x20602000 +#if LIBRESSL_VERSION_NUMBER >= 0x20603000 RUST_LIBRESSL_NEW +#elif LIBRESSL_VERSION_NUMBER >= 0x20602000 +RUST_LIBRESSL_262 #elif LIBRESSL_VERSION_NUMBER >= 0x20601000 RUST_LIBRESSL_261 #elif LIBRESSL_VERSION_NUMBER >= 0x20600000 @@ -466,6 +468,13 @@ See rust-openssl README for more information: println!("cargo:libressl_version=261"); println!("cargo:version=101"); Version::Libressl + } else if expanded.contains("RUST_LIBRESSL_262") { + println!("cargo:rustc-cfg=libressl"); + println!("cargo:rustc-cfg=libressl262"); + println!("cargo:libressl=true"); + println!("cargo:libressl_version=262"); + println!("cargo:version=101"); + Version::Libressl } else if expanded.contains("RUST_OPENSSL_110F") { println!("cargo:rustc-cfg=ossl110"); println!("cargo:rustc-cfg=ossl110f"); |