Skip to content

Beryl 0.2.6

Choose a tag to compare

@crimson-knight crimson-knight released this 04 Dec 08:50
· 36 commits to main since this release
d3c04cf

TLS::Socket#close_write, a certificate parsing fix, and Crystal 1.19.0 as
the declared floor, the lowest version CI tests, so Amber and Grant can
depend on Beryl as a shard.

  • crystal: in shard.yml is now ">= 1.19.0" (it was ">= 1.21.0"), with
    no source change. CI runs the type checks, the quick suite and the slow
    vectors on Crystal 1.19.0, installed from its release tarball and checked
    by sha256, beside the existing 1.21.0 jobs. (#56)
  • Certificates::Certificate.new raises MalformedCertificate for an
    explicit version that does not fit in 32 bits; it raised OverflowError, which callers rescuing the shard's errors did
    not catch. The DER fuzzer found it (CI run 47295558693). (#56)
  • Beryl::TLS::Socket#close_write ends this side of a connection and keeps the
    other open (RFC 8446 §6.1): it sends what was written, then close_notify,
    then shuts down the write side of the socket below. The peer reads every
    record and then the end of the stream, and this side goes on reading what
    the peer still sends, so closing a connection the peer is still writing to
    no longer turns into a reset that discards records it has not read. A
    write after it raises IO::Error; #write_closed? reports it. (#55)

Checks at the tagged commit: release PR #56 on GitHub Actions, run 47297921364, every job green, including the specs on Crystal 1.19.0 (the declared floor, release tarball checked by sha256), the constant-time checks, the differentials against libcrypto, the certificate corpus and DER fuzzer, and TLS interop, BoGo and tlsfuzzer. The merge commit has the same tree as the tested head.

Commit: d3c04cfb1764992cbffbda6f6c48fa83e8724464
Tree: 0c3b7992429387318ade654d0122a7e941544846
Tag object: 9b06702c36012e04d3776e8685922ac631304123
Tarball: beryl-0.2.6.tar.gz (git archive --format=tar.gz --prefix=beryl-0.2.6/ d3c04cfb1764992cbffbda6f6c48fa83e8724464)
Tarball sha256: 7555c54b789df1f3b153a39b73ae8c2ec3f8be71de89c812ff480edbc8a2b9f7

The tarball was built twice from the commit and gave the same sha256 both times, and the copy attached here was downloaded again and matched.