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
Joshua Nelson
6ddfee29b7
Fix clippy warnings for 1.54
2021-07-29 12:16:55 -04:00
Anthony Ramine
77ef82c88d
Bump boring to 1.1.6
2021-04-16 13:00:09 +02:00
Anthony Ramine
fbdcfc3dbc
Introduce ClientHello::client_version
2021-04-16 12:31:04 +02:00
Anthony Ramine
c85bf0940e
Bump boring to 1.1.5
2021-04-13 16:05:40 +02: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
Anthony Ramine
e13112e3ca
Allow uppercase acronyms
2021-04-06 11:44:47 +02:00
Ivan Nikulin
00f54790fb
Bump boring to 1.1.4
2021-03-15 14:19:02 +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
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
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
Ivan Nikulin
adb00bde17
Bump boring to 1.1.1
2021-03-01 12:54:56 +00:00
Anthony Ramine
be0b2605ff
Make Display for Error more readable
2021-03-01 12:09:04 +01:00
Ivan Nikulin
ed3279c4f1
Bump feature version on all packages instead.
2021-02-24 11:52:24 +00:00
Ivan Nikulin
3772a53bc0
Bump boring-sys to 1.0.5. Bump boring to 1.0.4
2021-02-24 11:06:01 +00:00
Ivan Nikulin
af25e9c9a0
Merge pull request #14 from except/bssl-specific-options
...
Enable various client features of bssl
2021-02-24 02:51:33 +00:00
Anthony Ramine
86691d8d72
Introduce ExtensionType for the arg of get_extension
2021-02-22 14:23:26 +01:00
Anthony Ramine
f831b25bf1
Introduce ClientHello::get_extension
2021-02-22 14:20:50 +01:00
Hasan Gondal
ee94b2a01d
Add support for SSL_CTX_set1_curves
2021-02-20 23:58:25 +00:00
Hasan Gondal
6cfc713483
Enable various client features of bssl
2021-02-19 22:52:38 +00:00
Anthony Ramine
9c5c7e3db5
Introduce set_select_certificate_callback
2021-02-19 16:11:14 +01:00
Frank Denis
05c6a41270
Use bindgen to automatically generate boring-sys
...
This ensures that all the Rust functions, types and constants
always match the actual BoringSSL definitions.
It also removes quite a lot of manually maintained code, as well
as the need for systest.
The value for `SslOptions::ALL`, for example, was wrong. On current
BoringSSL versions, this is a no-op, and is set to `0`.
Clearing it does nothing. So, the `clear_ctx_options` test, that
passed by accident, was adjusted to use a different option.
The `libc` crate is not required, as we only use it for types that
are already defined in the standard library. It was removed from
`boring-sys`. The same can be done to other crates later.
2021-02-12 15:03:45 +01:00
Ivan Nikulin
0c9166dd74
Make new clippy happy
2021-02-11 19:35:11 +00:00
Gabriela Alexandra Moldovan
12d6a27104
Fix clippy warning.
2021-01-08 16:53:20 +00:00
Ivan Nikulin
a6fbc0fed2
Bump version
2020-12-23 14:15:50 +00:00
Ivan Nikulin
f40ac2d1ed
Implement conversion of HandshakeError to the source stream
2020-12-23 12:25:30 +00:00
Gabriela Alexandra Moldovan
31ed6443b1
Fix boring repository links.
2020-11-14 00:03:43 +00:00
Ivan Nikulin
5afd10b577
Fix boring-sys linking. Bump version.
2020-11-12 13:03:41 +00:00
Ivan Nikulin
2b61e14211
Fix doc comment
2020-11-11 20:40:58 +00:00
Ivan Nikulin
fda73f4947
Fix docs
2020-11-11 20:32:53 +00:00
Ivan Nikulin
548771adb1
Add tokio-boring
2020-11-11 19:26:22 +00:00
Ivan Nikulin
ec45baa6d8
Revive CI
2020-11-11 19:01:29 +00:00
Ivan Nikulin
fc07d7dfbb
Fix doc comments
2020-11-11 18:08:14 +00:00
Ivan Nikulin
5cb8947d7e
Rename stuff
2020-11-11 17:47:30 +00:00