-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cert: relax enforcing positive serial numbers. #36
Conversation
This commit removes some TODOs on `clippy::unreadable_literal` allows in the integration tests by adding RFC 3339 values in comments for each of the UNIX epoch literals. In an ideal world we'd specify the dates _as_ RFC 3339 date strings and parse them to a UNIX epoch, but doing so would require a new crate dependency. This approach makes the literals more readable and requires no new deps.
This follows the crypt implementation of Go, as per the following commit: golang/go@a0ea93d Signed-off-by: Nadja Reitzenstein <me@dequbed.space>
Signed-off-by: Nadja Reitzenstein <me@dequbed.space>
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #36 +/- ##
==========================================
- Coverage 94.15% 94.14% -0.02%
==========================================
Files 14 14
Lines 2533 2509 -24
==========================================
- Hits 2385 2362 -23
+ Misses 148 147 -1
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
It looks like there's a test failure in |
The `ALL_SIGALGS` slice of `SignatureAlgorithm`'s only contains the RSA algorithms this test relies on when the `alloc` feature is enabled. Therefore, like some other tests in `tests/integration.rs` we must gate this particular test on the `alloc` feature.
This turned out to be pretty simple. The new test needs to be gated on the |
This branch extends the #10 PR submitted by @dequbed in the hopes of getting this work merged before the release tag is cut. Thanks and credit to them for the original work!
Original Description
Based on discussion in Discord: https://discord.com/channels/976380008299917365/1015156984007381033/1037367413357948928
This follows the crypt implementation of Go, as per the following commit: golang/go@a0ea93d
New Updates
main
branch are resolved.alloc
feature to fixcargo test --no-default-features
: f4e3ad3