Skip to content

Rework plaintext I/O interface - #629

Merged
ctz merged 6 commits into
mainfrom
jbp-rework-io-interface
Apr 11, 2021
Merged

ctz merged 6 commits into
mainfrom
jbp-rework-io-interface

Conversation

@ctz

@ctz ctz commented Apr 10, 2021

Copy link
Copy Markdown
Member

See #563 (comment) for details

ctz added 6 commits April 11, 2021 10:17
As well as plaintext and TLS buffer IO status.  The former
is useful to ensure a close_notify doesn't overtake already-received
bytes.  Both are useful to predict the buffer sizes that'll
be needed on the next read()/write_tls().
- Ok(0) (ie, EOF) is reserved for signalling a received close_notify.
- Err(ErrorKind::WouldBlock) happens when there are no bytes to read.
These are returned via reader()/writer()
This code never did anything; make flush_plaintext private.
Align errors for TLS1.2 and TLS1.3 if there are no overlapping signature
schemes.
@ctz
ctz force-pushed the jbp-rework-io-interface branch from 7d8dde3 to 2c9c899 Compare April 11, 2021 09:22
@codecov-io

codecov-io commented Apr 11, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #629 (2c9c899) into main (cf06149) will increase coverage by 0.27%.
The diff coverage is 94.20%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #629      +/-   ##
==========================================
+ Coverage   96.22%   96.49%   +0.27%     
==========================================
  Files          52       52              
  Lines        9051     9098      +47     
==========================================
+ Hits         8709     8779      +70     
+ Misses        342      319      -23     
Impacted Files Coverage Δ
rustls/src/lib.rs 100.00% <ø> (ø)
rustls/src/stream.rs 91.66% <55.55%> (-8.34%) ⬇️
rustls/src/client/mod.rs 95.59% <100.00%> (+6.35%) ⬆️
rustls/src/conn.rs 96.36% <100.00%> (+0.38%) ⬆️
rustls/src/server/mod.rs 93.25% <100.00%> (+1.65%) ⬆️
rustls/src/server/tls12.rs 99.77% <100.00%> (+0.22%) ⬆️
rustls/src/sign.rs 94.73% <0.00%> (+1.31%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cf06149...2c9c899. Read the comment docs.

@ctz
ctz merged commit 51961e1 into main Apr 11, 2021
@ctz
ctz deleted the jbp-rework-io-interface branch April 11, 2021 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants