Age | Commit message (Collapse) | Author |
|
- Release buffered-reader 1.0.0, sequoia-openpgp 1.0.0, and
sequoia-sqv 1.0.0.
- Also release sequoia-sop 0.22.0.
|
|
|
|
|
|
- Versions required by feature or API usage:
- anyhow 1.0.18.
- policy::test::reject_seip_packet and
policy::test::reject_cipher' fail
- We use `impl From<anyhow::Error> for Box<dyn std::error::Error +
Send + Sync + 'static>`, introduced in 1.0.5.
- tokio 0.2.19
- We use `tokio::net::tcp::OwnedReadHalf`, introduced in 0.2.19.
- chrono 0.4.10
- We use the `std` feature, introduced in 0.4.10.
- thiserror 1.0.2
- futures and futures-util 0.3.5
- tempfile 3.1
- c_doctests require the same version of rand both as direct
dependency and through tempfile.
- Yanked versions:
- structopt 0.3.11. 0.3.8 to 0.3.10 were yanked.
- socket2 0.3.16. 0.3.0 to 0.3.15 were yanked.
- Update our dependencies to the package versions required by other
dependencies, e.g. structopt requires lazy_static 1.4.0.
- clap 2.33
- lazy_static to 1.4.0
- libc to 0.2.66
- proc-macro2 to 1.0.7
- syn to 1.0.5.
- winapi 0.3.8
|
|
- See #615.
|
|
- This way the entire `BufferedReader<C>` will be `Send` and `Sync`.
- Modify all other crates accordingly.
- See #615.
|
|
- See #615.
|
|
- This makes file_unix::File Send and Sync.
|
|
|
|
|
|
|
|
- Use the Cookie's debug output to allow for generic Cookies.
|
|
|
|
- If reading from the wrapped reader returns an error, but we still
can satisfy the request in Generic::data_helper, we do so. But, it
is important to keep the error and return it next time the function
is called. Otherwise, error conditions are mis-reported as end of
file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- See #480.
|
|
|
|
- Fixes #548.
|
|
|
|
|
|
- Fix unmatched references.
|
|
- Replace bitshifts with {u16,u32}::from_be_bytes from the standard library.
|
|
|
|
|
|
- Hat tip to Fabian Freyer of Radically Open Security.
|
|
- Consume the whole buffer, not just DEFAULT_BUF_SIZE.
|
|
|
|
- This cleanly avoids creating a linked list of references on the
stack that grows every time we call into_inner.
|
|
- Also, make PacketHeaderParser polymorphic over
BufferedReader<Cookie> at the same time.
|
|
|
|
This reverts commit 9619dffaa756d8cfd6ec691699bd6ae4d59ecfb5.
|
|
- This method returns the reader in a box. The nice thing is that
we can provide a specialized implementation for
Box<BufferedReader> that avoids boxing the reader twice. This
cleanly addresses the issue worked around in
9619dffaa756d8cfd6ec691699bd6ae4d59ecfb5.
|
|
|
|
|
|
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
|
|
|
|
|
|
- If the internal buffer has some data, process that before reading
more.
|
|
- On debug builds, Vec<u8>::truncate is very, very slow. For
instance, running the decrypt_test_stream test takes 51 seconds on
my (Neal's) computer using Vec<u8>::truncate and <0.1 seconds using
`unsafe { v.set_len(len); }`.
The issue is that the compiler calls drop on every element that is
dropped, even though a u8 doesn't have a drop implementation. The
compiler optimizes this away at high optimization levels, but
those levels make debugging harder.
|
|
- The `Generic::data_helper` was not sufficiently careful when
dealing with errors. In particular:
- If `Generic::data_hard(1)` was called, and an error occured, and
nothing was buffered or read, `Generic::data_helper` would
return the empty string instead of the error.
- If `Generic::data(n)` was called, and an error occured, but some
data (< n bytes) was buffered, `Generic::data_helper` would
return the error instead of the data that was read.
- Fix these bugs.
- Also, simplify the code and don't save whether we hit EOF or the
error (which we can only return once, anyway). Instead, rely on
the underlying reader to return EOF or the error again.
- Fixes #174.
|
|
- Change BufferedReader::drop_through to optionally match EOF.
|
|
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
|
|
|
|
Newer Rust compilers requre `dyn` marking trait objects.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|