Commit Graph

38 Commits

Author SHA1 Message Date
Jim McGrath 03b8b29e4c use library names supplied by vcpkg 2020-02-26 00:04:16 -06:00
Hiroki Noda 9189b67326 Add NO RENEGOTIATION option
SSL_OP_NO_RENEGOTIATION was added in OpenSSLv1.1.1 and backported to
v1.1.0h.
2020-01-28 04:07:38 +09:00
Atul Bhosale 784978bad0
Format code using 'cargo fmt' 2019-11-14 21:00:53 +05:30
Charlie Li f66c860fce Support LibreSSL 3.0.2
3.0.2 is the first stable release, so support the rest of the series.
2019-10-19 09:56:56 -04:00
Matt Vertescher b771738a3a Fix rustc warnings
- Use `..=` for inclusive ranges
- Add the `dyn` keyword for trait objects
- Switch from `ONCE_INIT` to `std::sync::Once::new()`
2019-10-08 08:35:35 -04:00
Charlie Li e2b51a8705 Support LibreSSL 3.0.1 2019-10-03 09:21:11 -04:00
Steven Fackler 8d521bacbb Support LibreSSL 3.0.0
Closes #1121
2019-08-06 18:36:04 -07:00
Steven Fackler ef86438a10 Report the vendored install location
Closes #1117
2019-05-31 19:08:58 -07:00
Steven Fackler 958c1811b0 Fix constness for 1.1.1c 2019-05-31 07:29:00 -07:00
Steven Fackler a9b9f818a1
Merge pull request #1097 from vishwin/master
Support LibreSSL 2.9.1
2019-05-08 18:40:18 -07:00
Steven Fackler 62b211990f
Revert "fix build err for taget `*-pc-windows-gnu`" 2019-05-03 18:44:53 -07:00
Alex Crichton 06577cbf9c Switch from `rustc_version` to `autocfg`
This switches the `openssl-sys` crate from using `rustc_version` as a
crate to check the version of rustc to using `autocfg`. While
functionally the same this has a few advantages:

* The `autocfg` crate has fewer dependencies and compiles faster
* If the `semver` crate has the `serde` feature activated, turns out
  `openssl-sys` gets compiled quite late in the dependency graph which
  can push back further C compilations. This is due to the slower
  compilation time of `serde` itself.
* The `autocfg` crate I believe is a bit more robust in terms of being
  flexible with the output of rustc itself.
2019-05-01 08:09:40 -07:00
Charlie Li 995f9a9533 Whitelist future LibreSSL 2.9.x versions, as 2.9.1 is the first stable release. 2019-04-26 14:35:11 -04:00
南浦月 844c3c445a
fix build err for taget `*-pc-windows-gnu` 2019-04-26 15:27:16 +08:00
Charlie Li d79090a00a Reconcile exdata and version functions between libraries/versions. 2019-04-24 23:15:56 -04:00
Charlie Li f0b8a2e467 Support LibreSSL 2.9.1
LibreSSL 2.9.1 added generic DTLS methods.

While here, bump CircleCI.
2019-04-24 16:08:42 -04:00
Hristo Venev 6b0583b7c4 Tell dependencies if vendored OpenSSL was used
The system OpenSSL knows where its certificates are. If
DEP_OPENSSL_VENDORED is not set:
- openssl-probe doesn't need to set any environment variables and can
get the paths from OpenSSL itself.
- Libraries that normally use `openssl_probe::probe()` and
`SSL_CTX_load_verify_locations` can instead use
`SSL_CTX_set_default_verify_paths`.
2019-04-03 18:01:49 +03:00
Steven Fackler 27494508bf Fix deprecation warning 2019-03-11 21:35:21 -07:00
Steven Fackler 953fe86b9a Add ERR_PACK
Also make error functions const when targeting a new enough rustc
2019-02-27 21:50:39 -08:00
Steven Fackler 5faeeb5c61
Merge pull request #1070 from sfackler/build-script-cleanup
Build script cleanup
2019-02-27 21:28:45 -08:00
Steven Fackler 2474bce3db Don't dynamically generate expando.c 2019-02-27 21:14:46 -08:00
Steven Fackler 25f750c223 Add some debugability to build script env
Also split finding logic out to separate files
2019-02-26 20:45:10 -08:00
Steven Fackler ab298d0264 Fix const changes in 1.1.1b 2019-02-26 20:31:01 -08:00
Steven Fackler 7eee39f1ec Rustfmt 2019-02-22 10:14:15 -07:00
Laurence Tratt af4488357c Explicitly support LibreSSL 2.9.0. 2018-12-03 17:33:53 +00:00
Steven Fackler 9fd7584a84 Support LibreSSL 2.8.x
Closes #1009
2018-10-18 08:49:24 -07:00
Alex Crichton dab71dbf0a Bump dependency on openssl-src-rs
Brings in the first release with OpenSSL 1.1.1
2018-10-16 06:59:07 -07:00
Charlie Li b86f547dbf Update the OCSP_cert_to_id() signature for LibreSSL 2.8.1
While here, restore CI for LibreSSL 2.8.0 alongside 2.8.1 to account for the function signature change.
2018-10-01 00:44:37 -04:00
Charlie Li 72a60af503 Only whitelist LibreSSL 2.8.0 and 2.8.1
ABI is not declared stable for anything past 2.8.1 yet.
2018-09-27 01:48:44 -04:00
Charlie Li b6971883be Support the rest of LibreSSL 2.8.x
LibreSSL 2.8.1 released, so update the check for all versions in the series, not just 2.8.0.
2018-09-27 01:19:39 -04:00
Steven Fackler 8c6bc774db Support libressl 2.8.0
Closes #988
2018-09-12 20:44:22 -07:00
Steven Fackler cb2f4c2287 X509_V_ERR_UNSPECIFIED was added in 1.0.2f
Closes #970
2018-08-04 10:23:35 -07:00
Alex Crichton 71ee9439ca Support builds of OpenSSL from vendored source (take 2)
This is a revival of #684 to see if I can help push it across the finish line!

Closes #580
2018-07-30 15:15:24 -07:00
Emīls 76cad11b64 Link all needed system libraries on Windows, when building statically 2018-06-29 19:35:16 +01:00
Steven Fackler 115cb730b0 Switch to accessors in libressl where possible
Some accessors are mysteriously still macros so we can't make everything
opaque yet, unfortunately.

cc #909
2018-06-09 21:49:36 -07:00
Steven Fackler 9bf748befb Link to gdi32 on windows
Closes #935
2018-06-09 09:35:01 -07:00
Steven Fackler 862d784161 Clean up openssl-sys cfgs 2018-05-20 11:29:27 -07:00
Steven Fackler d991566f2b Support min/max version in LibreSSL
Their implementations of the accessors don't behave expected with no
bounds, so we ignore those bits of the tests.
2018-05-19 19:57:12 -07:00