-
Notifications
You must be signed in to change notification settings - Fork 139
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 certstore windows cmsg type error when building using go v1.18 #114
Fix certstore windows cmsg type error when building using go v1.18 #114
Conversation
Signed-off-by: El Mostafa IDRASSI <[email protected]>
be66d35
to
84f3ae3
Compare
Thanks for this PR! It looks fairly straightforward — we'll have to verify and debug this a bit, but looks like an appropriate fix. |
This pull requests also fixes an issue we have, that our signed commits cannot be verified with Is there are a roadmap or release date when a new release with this fix will be available? |
I can confirm this is an issue on |
This commit ports over two fixes that seemingly have lost all upstream traction: 1. Add support for RSA-PSS signature verification 2. Add an `unsafe.Pointer` cast to allow compilation on Go > 1.17 These code changes are both mostly ported, there is little "original" code. https://github.com/github/certstore/pull/20/files#diff-e46a14c55fd3c2c2f7ade1a63b9f14f591829e183d307f7d2ee54cb7cc4c4073R395 github#114
Closing and re-opening to jog CI. |
This pull request was cherry-picked in pull request #149. Thank you for your contribution! I am going to close this pull request since your commits are now merged. |
When trying to use
certstore
in a project that makes use of go v1.18+, the following error occurs :From this golang issue, it appears that go 1.18 has added some safety checks which reject unsafe conversions, resulting in such errors.
A simple fix is to cast the
cms
variable into anunsafe.Pointer
before casting it to aC.HLOCAL
.This change was tested on Windows by building
smimesign
locally and running the test suite.Closes #107
Signed-off-by: El Mostafa IDRASSI [email protected]