-
Notifications
You must be signed in to change notification settings - Fork 119
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
fix(s2n-quic-crypto): require new enough version of zeroize #1609
Conversation
Thanks for the PR! |
This crate uses the ZeroizeOnDrop trait which was only introduced in the 1.5 series of zeroize.
0fee619
to
4ee5cab
Compare
I've updated this to depend on 1.5 instead of 1.5.3. The way cargo upgrades work it would otherwise not allow upgrades to 1.6 which would not be desirable for a library. Cargo will skip the yanked versions for new dependencies anyway. |
But looking at cargo yank docs, even, |
Do we need to update the dependency then? |
Oh that's good to know, I must have misremembered this.
This was not the case for me, I stumbled upon this because on a new small test project it picked too old a version for some reason. As long as it is not specified to be >=1.5 there are scenarios where cargo will allow earlier versions, which will break.
I believe so, though I don't mind whether that's 1.5 or 1.5.3 (because I don't think that part matters). |
Are you sure you didn't have a Cargo.lock file? If its reproducible then its a Cargo bug and you should report that since |
So maybe there was a bug that needs reporting to cargo as I did not understand why it chose this version. Though that might also indicate I was doing something wrong. However it does not change what s2n-quic needs to specify as dependency requirement. It needs zeroize >= 1.5 since it uses an API first introduced there. So that's what it should depend on. The yanking of some 1.5 versions are not part of the issue being addressed here, I apologise for mixing that in when trying to figure out what version to depend on. We can expect cargo to deal with yanking. |
Description of changes:
This crate uses the ZeroizeOnDrop trait which was only introduced in the 1.5 series of zeroize. Earlier versions of this series were yanked, so 1.5.3 is the oldest version that can be used.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.