-
Notifications
You must be signed in to change notification settings - Fork 83
Use v3.0 OASIS header files #156
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
Conversation
The platform specific bindings are similar, except for: - the `packed` attribute - the layout_tests By removing the tests and adding `cfg_attr` for `packed` you get a binding that works cross platform. Signed-off-by: Arjen Nienhuis <[email protected]>
Use the original OASIS 3.0 headers with a custom minimal platform.h wrapper. Signed-off-by: Arjen Nienhuis <[email protected]>
Signed-off-by: Arjen Nienhuis <[email protected]>
I agree with this change although I remember someone (@ionut-arm) had concerns about bumping version from v2.4 to v3.0. This PR seems to solve issues reported with the previous approach: #66 (comment) (Since Windows support has been improved I'm wondering if we could use windows runner to actually test it... not sure about the effort to set it all up but even without it it doesn't seem that risky to merge it and if it fails on a Windows box we could improve that then). |
|
I don't mind v3.0 but Parsec, that's a main client of this crate, may. Let's wait to see what Ionut has to say (to fast lane it we could ask in the Parsec slack instance but I don't think it's that time critical). As for runners some high level doc is here: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners |
Oh, thank you for the patch! I was hoping to get some time to do that reorg of the header files, just for version v2.40 of the spec. I think I would still prefer if we had the option to support both v2 and v3 - if not at Which is to say, I'm probably in favour of this PR (if v3 is indeed a superset of v2), just need to go through the code as well. |
Ugh, now I remembered why we didn't do this before: licensing. If you look at the license header for the Oasis header files, you'll see they're not licensed under Apache 2 or something like that, it's some Oasis policy that's entirely free. It seems we've had this discussion before and we've had to reject the change for this reason. Actually, SoftHSM has gone the other way because of this: softhsm/SoftHSMv2#412 One interesting thing to note is that the EDIT: Here's another place where this is discussed. As far as I can tell, the |
Ough! That's bad! Yep, then definitely as it stands it cannot go through... 😢 |
We don't need to include them at all. Just let generate-bindings.sh download them. |
Hmm, that does sound like a good solution! BUT, one thing to note is that this will change the semantics and functioning of the |
Hey! |
raised another PR #228 since there's no progress for a long time |
Closing this since #228 got merged. |
Use the original OASIS 3.0 headers with a custom minimal platform.h wrapper.
Builds on #154 but that isn't required.