diff options
| author | Laurence Tratt <[email protected]> | 2017-06-25 14:42:39 +0100 |
|---|---|---|
| committer | Laurence Tratt <[email protected]> | 2017-06-25 14:42:39 +0100 |
| commit | aa5547cdab72ffcd1382c9b6e70e73ae788dad91 (patch) | |
| tree | 751d28d452d6ee5a50b1d01da22003ed58ac1cbf /openssl-sys | |
| parent | Merge pull request #654 from sfackler/pkey-private-key-from-der (diff) | |
| download | rust-openssl-aa5547cdab72ffcd1382c9b6e70e73ae788dad91.tar.xz rust-openssl-aa5547cdab72ffcd1382c9b6e70e73ae788dad91.zip | |
Enable build on LibreSSL 5.6.0 development branch.
Without this, openssl-sys can't compile on OpenBSD-current. As far as I can
tell, the only differences with respect to LibreSSL 5.5.4 are additional exposed
functions: there do not appear to be any breaking changes. Certainly all the
test suites in the repository succeed with this commit.
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 bd52d104..348c2f82 100644 --- a/openssl-sys/build.rs +++ b/openssl-sys/build.rs @@ -237,8 +237,10 @@ fn validate_headers(include_dirs: &[PathBuf]) -> Version { #include <openssl/opensslv.h> #include <openssl/opensslconf.h> -#if LIBRESSL_VERSION_NUMBER >= 0x20505000 +#if LIBRESSL_VERSION_NUMBER >= 0x20601000 RUST_LIBRESSL_NEW +#elif LIBRESSL_VERSION_NUMBER >= 0x20600000 +RUST_LIBRESSL_260 #elif LIBRESSL_VERSION_NUMBER >= 0x20504000 RUST_LIBRESSL_254 #elif LIBRESSL_VERSION_NUMBER >= 0x20503000 @@ -350,6 +352,12 @@ See rust-openssl README for more information: println!("cargo:libressl=true"); println!("cargo:version=101"); Version::Libressl + } else if expanded.contains("RUST_LIBRESSL_260") { + println!("cargo:rustc-cfg=libressl"); + println!("cargo:rustc-cfg=libressl260"); + 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"); |