Commit Graph

3247 Commits

Author SHA1 Message Date
Oliver Gould dcbe1571b3 boring-sys: Disable unnecessary bindgen dependencies
`bindgen`'s default features include dependencies like `clap` and
`env_logger` which are unnecessary when building `boring-sys`. When
using tools like `cargo-deny` to audit dependencies with mismatched
versions, these dependencies can easily conflict with application
dependencies.

This change disables `bindgen`'s default features to avoid unnecessary
dependencies.
2021-11-02 16:07:43 -05:00
Joshua Nelson 75d6ced4c9 Remove unused and deprecated `tempdir` dependency 2021-08-17 10:44:50 -05:00
Joshua Nelson 057a81b9a4 Remove unused `*Ref` parameters to macro
This doesn't actually do anything, it just makes it more clear that those parameters are ignored.
2021-08-17 10:44:50 -05:00
Joshua Nelson e46378d4de Update dependencies
In particular, this updates `foreign-types`, which had a lot of breaking changes.

- `ForeignType` is now an unsafe trait
- `*Ref` types no longer need a separate macro call, they're generated automatically
- Generated types now store `NonNull<T>` instead of `*mut T`
2021-08-17 10:44:50 -05:00
Joshua Nelson c037a438f8 Switch to 2018 edition in boring 2021-08-13 15:22:56 -05:00
Joshua Nelson 46787b7b69 Run `cargo fix --edition 2021-08-13 15:22:56 -05:00
Joshua Nelson 03dda42d1a Remove unused attribute 2021-07-30 16:24:16 -04:00
Robin Lambertz 993f68ded2 Remove unused dependency on bytes 2021-07-30 11:28:11 -04:00
Anthony Ramine 080dfa7edf Update bindgen to 0.59 and bytes to 1 2021-07-30 10:52:33 -04:00
Connor Jones 52499f5562
Merge pull request #46 from cloudflare/jnelson/rust-1.54
Fix clippy warnings for 1.54
2021-07-30 10:45:34 -04:00
Joshua Nelson 6ddfee29b7 Fix clippy warnings for 1.54 2021-07-29 12:16:55 -04:00
Joshua Nelson 3a0e2db753 Update documentation for tokio-boring
This also adds an `examples/` directory, to make sure the example in the readme doesn't get out of
date.
2021-07-29 11:28:43 -04:00
Connor Jones 8d00e01332
Merge pull request #43 from cloudflare/jnelson/submodule
Fetch git submodule automatically
2021-07-28 15:00:03 -04:00
Joshua Nelson 7c772a9832
Merge pull request #37 from Evrard-Nil/allow-pre-built-binaries
Allow pre-built binaries of BoringSSL
2021-07-28 14:58:52 -04:00
Joshua Nelson cedceb8213 Fetch git submodule automatically
Example output:

```
$ cargo check
   Compiling boring-sys v1.1.1 (/home/jnelson/src/boring/boring-sys)
warning: fetching boringssl git submodule
    Finished dev [unoptimized + debuginfo] target(s) in 28.27s
```
2021-07-28 14:21:22 -04:00
Connor Jones 6355fd816f
Merge pull request #42 from cloudflare/jnelson/warnings
Ignore bindgen warnings until they're fixed upstream
2021-07-27 23:43:10 -04:00
Joshua Nelson 57eac7dfc3 Ignore bindgen warnings until they're fixed upstream
We don't have any way of fixing these, and it's not feasible to switch away from bindgen.
Ignore the warnings for now.
2021-07-27 16:21:13 -04:00
Evrard-Nil Daillet c5010de2af pre-built binaries: Update readme and fix clippy 2021-06-01 10:52:36 +02:00
Evrard-Nil Daillet 2e8ad14f59 Check for env var for pre-built binaries of bssl 2021-05-18 20:16:16 +02:00
Ivan Nikulin 9cb2e41e1f
Merge pull request #33 from nox/bump
Bump tokio-boring to 2.1.3
2021-04-16 12:11:25 +01:00
Anthony Ramine 72e347d041 Bump tokio-boring to 2.1.3 2021-04-16 13:06:27 +02:00
Ivan Nikulin c8f13f23bd
Merge pull request #32 from nox/bump
Bump boring to 1.1.6
2021-04-16 12:01:25 +01:00
Anthony Ramine 77ef82c88d Bump boring to 1.1.6 2021-04-16 13:00:09 +02:00
Ivan Nikulin dbc4e70fcc
Merge pull request #30 from nox/client-version
Introduce ClientHello::client_version
2021-04-16 11:59:04 +01:00
Ivan Nikulin 61e69eb3e2
Merge pull request #31 from nox/unexpected-eof
Introduce HandshakeError::code
2021-04-16 11:57:48 +01:00
Anthony Ramine 4473d08df4 Introduce HandshakeError::code 2021-04-16 12:48:20 +02:00
Anthony Ramine fbdcfc3dbc Introduce ClientHello::client_version 2021-04-16 12:31:04 +02:00
Ivan Nikulin 90a195c9fe
Merge pull request #29 from nox/bump
Bump boring to 1.1.5
2021-04-13 15:12:11 +01:00
Anthony Ramine c85bf0940e Bump boring to 1.1.5 2021-04-13 16:05:40 +02:00
Ivan Nikulin 10e472f64a
Merge pull request #28 from nox/early-servername
Allow returning more stuff from the early callback
2021-04-13 12:21:26 +01:00
Anthony Ramine d147f155a4 Allow retrieving the version string from early callback 2021-04-13 12:03:55 +02:00
Anthony Ramine 6baba64eec Allow returning the server name from the early callback 2021-04-13 11:59:27 +02:00
Ivan Nikulin c4e1966c16
Merge pull request #26 from nox/bump
Bump boring-sys to 1.1.1, tokio-boring to 2.1.2
2021-04-06 13:27:36 +01:00
Anthony Ramine f4b8870404 Bump boring-sys to 1.1.1, tokio-boring to 2.1.2 2021-04-06 13:13:06 +02:00
Ivan Nikulin 3838b11fb7
Merge pull request #25 from nox/expose-io-error
Provide access to inner I/O error during handshake
2021-04-06 12:05:38 +01:00
Anthony Ramine e13112e3ca Allow uppercase acronyms 2021-04-06 11:44:47 +02:00
Anthony Ramine dd04ec0ef4 Provide access to inner I/O error during handshake 2021-04-06 10:04:46 +02:00
Ivan Nikulin 00f54790fb Bump boring to 1.1.4 2021-03-15 14:19:02 +00:00
Ivan Nikulin 9fd89aba60
Merge pull request #19 from nox/errors
Tweak yet again the boring error reporting
2021-03-15 14:15:26 +00:00
Anthony Ramine 4353e4f8f3 Use Display for ssl::Error in Display for ssl::HandshakeError 2021-03-15 13:32:23 +01:00
Anthony Ramine 56564c7cb6 Tweak yet again the boring error reporting
We also omit file and line in ErrorStack itself now too.

ErrorStack is the wrapped error type returned by
hyper_boring::HttpsConnector::call.
2021-03-15 11:26:09 +01:00
Ivan Nikulin 7f6bd732e4 Bump boring to 1.1.3 2021-03-11 21:28:57 +00:00
Ivan Nikulin c11de09195
Merge pull request #18 from nox/rm-error-file-line
Remove file/line from Display for HandshakeError
2021-03-11 21:28:00 +00:00
Anthony Ramine 6f4ecb3d90 Remove file/line from Display for HandshakeError 2021-03-11 14:42:00 +01:00
Ivan Nikulin ebab82eb5b Bump boring to 1.1.2, tokio-boring 2.1.1 2021-03-09 17:47:01 +00:00
Ivan Nikulin 2667b0fdee
Merge pull request #17 from nox/handshake-error
Improve error printing
2021-03-09 17:43:44 +00:00
Anthony Ramine 8fc84f01e0 Add tokio_boring::HandshakeError::as_source_stream 2021-03-09 16:26:31 +01:00
Anthony Ramine 66cabd882c Introduce MidHandshakeSslStream::into_parts 2021-03-09 16:26:30 +01:00
Anthony Ramine 51734088ef Print handshake errors in a better way
We completely ignore the ErrorStack value if it is
an X509 verification failure.
2021-03-09 16:26:30 +01:00
Anthony Ramine 8274492b95 Separate errors in an error stack better 2021-03-05 16:24:11 +01:00