Dirkjan Ochtman
38eedb5ea9
examples: use inline variable names in format strings
2023-01-16 10:44:08 +01:00
Brian Smith
6dfa67809d
Replace `doc(hidden)` with `pub(crate)` where those semantics are intended.
...
I think these uses of `doc(hidden)` are trying to implement `pub(crate)`
semantics. Perhaps it was done this way a long time ago when `pub(crate)`
wasn't a think.
This change causes an `unreachable_pub` warning for `PlaintextSink`, so
make that `pub(crate)` too.
Some external users might be using these even though they probably shouldn't
be, so this is technically a breaking change.
2023-01-16 10:32:14 +01:00
Dirkjan Ochtman
e1731db6b7
Use Side in the bogo_shim option state
2023-01-15 16:27:26 +01:00
Dirkjan Ochtman
e4ac86f279
Make Side public and use it for quic::Keys::initial()
2023-01-15 16:27:26 +01:00
Dirkjan Ochtman
1d314aad44
quic: take Side argument instead of bool
2023-01-15 16:27:26 +01:00
Joseph Birr-Pixton
af65d961ee
Merge branch 'feat-ip-address' into main
2023-01-13 15:51:31 +00:00
Joseph Birr-Pixton
38e26f5755
Support IP address names in default verify_server_cert()
2023-01-13 15:43:30 +00:00
Joseph Birr-Pixton
d312391239
Move to rustls-webpki fork
2023-01-13 15:43:30 +00:00
Joseph Birr-Pixton
ad403b6677
Prepare for next rustls release
2023-01-13 15:43:30 +00:00
Dirkjan Ochtman
bdd1392a50
Switch from criterion to bencher
...
This has less rich output but doesn't have any dependencies, very
much unlike criterion (which was breaking our minimal versions check).
2023-01-13 12:11:26 +01:00
Dirkjan Ochtman
6e6baa91e7
Upgrade to 2021 edition
2023-01-13 12:11:26 +01:00
Dirkjan Ochtman
dbcf3668bb
Update development dependencies
2023-01-13 12:11:26 +01:00
Joseph Birr-Pixton
9b5bb50d9d
Prepare 0.20.8
2023-01-12 16:14:22 +00:00
Joseph Birr-Pixton
d4cf46404f
Use the enums exposed in 5dab6ed6
in tests
2023-01-12 16:14:22 +00:00
Jacob Rothstein
cba4d0c0f6
add a README for BoGo
2023-01-12 10:22:37 +01:00
Jacob Rothstein
b177e4cac2
move doc(cfg(feature = …)) to original definitions ( #1156 )
2023-01-11 16:26:46 -08:00
Jacob Rothstein
5681b44f92
use saturating add in ticket expiration
2023-01-11 22:55:06 +01:00
Jacob Rothstein
be7b159ca6
update msrv to 1.57
2023-01-11 18:09:21 +01:00
Jacob Rothstein
857aab52fa
move benchmarks to benches directory
2023-01-07 10:10:46 +00:00
Dirkjan Ochtman
9b4ace0b5a
tls12: remove nested conditional compilation attributes
2023-01-05 13:22:04 +01:00
Dirkjan Ochtman
aed5d9c334
hsjoiner: inline single-use parse_message() function
2023-01-05 08:41:51 +01:00
Dirkjan Ochtman
9e657be6b9
hsjoiner: simplify awkward message type checking API
2023-01-05 08:41:51 +01:00
Dirkjan Ochtman
279f88fb26
hsjoiner: lazily parse messages from the handshake joiner
2023-01-05 08:41:51 +01:00
Dirkjan Ochtman
326a6147f2
hsjoiner: remove unused Default impl
2023-01-05 08:41:51 +01:00
Dirkjan Ochtman
3356e3c705
hsjoiner: abstract over implementation details
2023-01-05 08:41:51 +01:00
Dirkjan Ochtman
ec73ad6856
hsjoiner: extract deframe_one() into parse_message() function
2023-01-05 08:41:51 +01:00
Dirkjan Ochtman
33e269d258
hsjoiner: extract buf_contains_message() into payload_size() function
2023-01-05 08:41:51 +01:00
Dirkjan Ochtman
5a61653006
hsjoiner: get rid of unnecessary nested scope
2023-01-05 08:41:51 +01:00
Dirkjan Ochtman
dbbb4eafc0
hsjoiner: clarify the return type for take_message()
2023-01-05 08:41:51 +01:00
Joseph Birr-Pixton
6087246dbf
Measure coverage using cargo-llvm-cov
...
This deletes quite a bit of ad-hoc scripting that is
replaced by llvm-cov.
2022-12-31 13:23:01 +00:00
Brian Smith
6da1d8d711
Server: Change `Acceptor` to only allow one attempt per ClientHello.
...
When we encounter an error processing the client hello, don't try again.
Trying again generally won't do any good. This matches `Future::poll`
semantics (Futures shouldn't be polled after yielding `Ready`).
2022-12-22 11:49:27 +01:00
Joseph Birr-Pixton
425c6c2443
Fix clippy nightly nits
2022-11-27 08:12:39 -08:00
Tristan
eaa47e382e
Add links to the examples in the documentation
2022-11-24 09:46:46 -08:00
Dirkjan Ochtman
ea99a6bc39
Add note in the changelog
2022-11-16 13:28:39 +01:00
Dirkjan Ochtman
5a92f905b9
Add test coverage for received plaintext backpressure
2022-11-16 13:28:39 +01:00
Dirkjan Ochtman
ad61765e7e
Exert backpressure when the received_plaintext buffer is full
2022-11-16 13:28:39 +01:00
Dirkjan Ochtman
7eb328d6eb
bench: read out plain text buffer more regularly
2022-11-16 13:28:39 +01:00
Dirkjan Ochtman
66ce7f5634
Clarify/update documentation for ConnectionCommon::read_tls()
2022-11-16 13:28:39 +01:00
Dirkjan Ochtman
8495c0a8f2
Upgrade CI to test ubuntu-20.04 instead of 18.04
...
GitHub is removing the 18.04 environment soon.
2022-11-06 08:03:54 +01:00
Dirkjan Ochtman
a09d3682fe
Reenable unreachable_pub lint
...
The rustc regression was reverted.
2022-11-06 08:02:55 +01:00
trinity-1686a
1c45c03935
fix incorrect deprecation message
2022-11-02 11:20:01 +01:00
Francis Russell
e94803513f
Update README after running `pull-usage`.
2022-10-31 10:21:28 +01:00
Francis Russell
4e6fe619c1
Update `pull-usage` script.
2022-10-31 10:21:28 +01:00
Francis Russell
20903dd226
Update README to fix `tlsserver-mio` naming.
2022-10-31 10:21:28 +01:00
Francis Russell
0e07a40c7f
Update `tlsserver-mio` usage.
2022-10-31 10:21:28 +01:00
Francis Russell
88fb4b8222
Update README to fix `tlslient-mio` naming.
2022-10-31 10:21:28 +01:00
Francis Russell
aa7e96ec82
Update `tlsclient-mio` usage.
2022-10-31 10:21:28 +01:00
Dirkjan Ochtman
a9f80ec516
deframer: extend test coverage
2022-10-23 10:58:48 +02:00
Dirkjan Ochtman
b6e8478383
deframer: add test for large buffer writes
2022-10-23 10:58:48 +02:00
Dirkjan Ochtman
53db60f996
deframer: buffer plain bytes, parse on processing
...
This avoids buffering a large number of messages.
2022-10-23 10:58:48 +02:00