Anthony Ramine
907eaf079c
Introduce async callbacks
...
We introduce tokio_boring::SslContextBuilderExt, with 2 methods:
* set_async_select_certificate_callback
* set_async_private_key_method
2023-10-10 09:22:36 +01:00
Anthony Ramine
1c790f7277
Introduce AsyncStreamBridge
...
This encapsulates a bit better the unsafety of task context
management to invoke async code from inside boring.
2023-10-10 09:22:36 +01:00
Anthony Ramine
3d7ff0a5c0
Introduce setup_accept and setup_connect
...
These two new kinds of methods immediately return a MidHandshakeSslStream
instead of actually initiating a handshake. This greatly simplifies
loops around MidHandshakeSslStream::WouldBlock.
2023-10-10 09:22:36 +01:00
Ivan Nikulin
d1ee9bfd86
Use workspace metadata for crates
2023-07-10 11:38:18 +01:00
Oliver Gould
c4e1f47497
Relax constraints on `Display for tokio-boring::HandshakeError`
...
`tokio_boring::HandshakeError` currently requires that the inner stream
implements `Debug` for its `Display` implementation. This constraint is
unnecessary.
This change removes this `Debug` constraint so `HandshakeError` always
implements `Display`.
2021-11-04 12:38:39 -05: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
Anthony Ramine
4473d08df4
Introduce HandshakeError::code
2021-04-16 12:48:20 +02:00
Anthony Ramine
dd04ec0ef4
Provide access to inner I/O error during handshake
2021-04-06 10:04:46 +02:00
Anthony Ramine
8fc84f01e0
Add tokio_boring::HandshakeError::as_source_stream
2021-03-09 16:26:31 +01:00
Ivan Nikulin
10488a85f3
Sync upstream changes to support tokio 1.x
...
Bump major versions of hyper-boring and tokio-boring.
2021-02-18 16:12:19 +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
f4096d8afd
Add hyper-boring
2020-11-11 20:29:54 +00:00
Ivan Nikulin
548771adb1
Add tokio-boring
2020-11-11 19:26:22 +00:00