Commit Graph

2760 Commits

Author SHA1 Message Date
Steven Fackler 62b211990f
Revert "fix build err for taget `*-pc-windows-gnu`" 2019-05-03 18:44:53 -07:00
Steven Fackler d2b169dae6 Fix doc link bugs 2019-05-03 07:32:05 -07:00
Steven Fackler 9f3cf9907f
Merge pull request #1103 from alexcrichton/autocfg
Switch from `rustc_version` to `autocfg`
2019-05-01 08:39:49 -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
Steven Fackler 3331908a1d Release openssl v0.10.21 2019-04-30 21:59:02 -07:00
Steven Fackler dedbcc6570 Release v0.9.44 2019-04-30 21:54:53 -07:00
Steven Fackler d8a9a7fa11
Merge pull request #1100 from nanpuyue/patch-1
fix build err for taget `*-pc-windows-gnu`
2019-04-29 19:17:29 -07:00
Steven Fackler ee5b8b1f44
Merge pull request #1102 from npmccallum/master
Fix output size check for stream ciphers
2019-04-29 15:54:45 -07:00
Nathaniel McCallum 7ad3208937 Fix output size check for stream ciphers
The previous output size check presumed a block cipher. Therefore, it
enforced an unnecessary extra byte in the case of stream ciphers. This
patch ensures that our size checks don't force the caller to
overallocate for stream ciphers.
2019-04-29 17:45:12 -04: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
Steven Fackler 18eaa3d09e
Merge pull request #1099 from sfackler/atomic-deprecation
Fix deprecation warnings in tests
2019-04-25 10:10:34 -07:00
Steven Fackler 4121ac34cb Fix deprecation warnings in tests 2019-04-25 10:03:13 -07:00
Charlie Li d79090a00a Reconcile exdata and version functions between libraries/versions. 2019-04-24 23:15:56 -04:00
Charlie Li 98f91769e3 Add missing any() in the {,D}TLS_method usage logic. 2019-04-24 19:29:01 -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
Steven Fackler 2024379f17 Clean up seal/open a bit 2019-04-23 20:21:43 -07:00
Steven Fackler 2d8b7225e4
Merge pull request #1094 from vojta7/EVP_Seal
Add EVP_Seal and EVP_Open
2019-04-23 19:55:28 -07:00
Vojtěch Pejša 865c613de3 Fix requiret ossl version for EVP_PKEY_size 2019-04-23 12:36:42 +02:00
Steven Fackler db858adcf8
Merge pull request #1096 from sfackler/sfackler-patch-1
Don't set OPENSSL_VERSION for mingw build
2019-04-21 18:39:04 -07:00
Steven Fackler 4db16294ba
Don't set OPENSSL_VERSION for mingw build
We don't use the slproweb build on mingw anyways, so this was just confusing.
2019-04-21 17:41:29 -07:00
Vojtěch Pejša f40a328d43 Remove unnecessary version req and clean up param names. 2019-04-18 10:47:50 +02:00
Vojtěch Pejša 1b5293a977 Address comments. 2019-04-17 20:11:14 +02:00
Vojtěch Pejša bbff79636f Remove nested groups in use. 2019-04-15 13:59:29 +02:00
Vojtěch Pejša 63c7bda0c2 Add minimum ossl version. 2019-04-15 13:41:54 +02:00
Vojtěch Pejša 08879ed512 Add EVP_Seal and EVP_Open 2019-04-15 00:54:49 +02:00
Steven Fackler 63177bdf14
Merge pull request #1092 from hvenev/build-export-vendored
Tell dependencies if vendored OpenSSL was used
2019-04-03 19:26:10 -07: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 ae72202ad9
Merge pull request #1087 from sfackler/test-cleanup
Cleanup ssl tests
2019-03-20 22:40:18 -04:00
Steven Fackler 0b1c2a1048 Cleanup ssl tests 2019-03-20 19:34:50 -07:00
Steven Fackler 576de0eaa2 Release openssl v0.10.20 2019-03-20 10:45:10 -04:00
Steven Fackler a6b6648a62 Release openssl-sys v0.9.43 2019-03-20 10:39:09 -04:00
Steven Fackler 8c5ce91d07
Merge pull request #1084 from npmccallum/nid
Add the ability to get Nid from MessageDigest and EcGroupRef
2019-03-19 21:44:58 -04:00
Nathaniel McCallum 702bc48b1c Expose EC_GROUP_get_curve_name()
This gives us the ability to get the Nid from an EcGroupRef.
2019-03-19 11:10:35 -04:00
Nathaniel McCallum d9cb5433b1 Expose EVP_MD_type()
This gives us the ability to get the Nid from a MessageDigest.
2019-03-19 11:10:35 -04:00
Steven Fackler a335c1b2f5
Merge pull request #1083 from sfackler/digest-eq
Implement Eq for MessageDigest
2019-03-17 14:42:44 -04:00
Steven Fackler c3e2604702 Implement Eq for MessageDigest
Closes #1081
2019-03-17 14:33:56 -04:00
Steven Fackler 9eac3c6593 Release openssl-errors v0.1.0 2019-03-14 12:06:16 -07:00
Steven Fackler 2a028e59e4 Move CHANGELOG.md into openssl 2019-03-14 12:04:01 -07:00
Steven Fackler e49b54150e
Merge pull request #1082 from sfackler/error-lib
Add a crate to define custom error libraries
2019-03-14 11:52:29 -07:00
Steven Fackler 27d5786390 Metadata 2019-03-14 11:35:40 -07:00
Steven Fackler 0c112d2162 Fix osx build 2019-03-12 21:42:07 -07:00
Steven Fackler bd668ec702 Document openssl-errors 2019-03-12 21:31:12 -07:00
Steven Fackler 92d623bd64 Allow attributes on error items 2019-03-12 20:32:21 -07:00
Steven Fackler acb629a47f Add a crate to define custom error libraries 2019-03-12 07:55:40 -07:00
Steven Fackler 546405dc58
Merge pull request #1079 from sfackler/new-rustc
Run most tests on a modern rust distribution
2019-03-11 21:44:29 -07:00
Steven Fackler 27494508bf Fix deprecation warning 2019-03-11 21:35:21 -07:00
Steven Fackler d922e3f80b Upgrade ctest 2019-03-11 21:34:24 -07:00
Steven Fackler 77ff62a4c8 Fix synatx 2019-03-11 21:21:13 -07:00
Steven Fackler 914fadcec7 Build against modern rust by default
Add a single build against 1.24.1 to ensure back compat
2019-03-11 21:16:35 -07:00