-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add PathInitializer
to mc-sgx-dcap-ql
#166
Conversation
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
b028aec
to
ef0e235
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good.
Codecov Report
@@ Coverage Diff @@
## feature/sealing_parameter_validation #166 +/- ##
========================================================================
+ Coverage 86.67% 87.13% +0.46%
========================================================================
Files 41 41
Lines 2251 2371 +120
========================================================================
+ Hits 1951 2066 +115
- Misses 300 305 +5
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
b001476
to
15b47a1
Compare
b613e9b
to
d5378aa
Compare
15b47a1
to
9cc6746
Compare
d5378aa
to
3100487
Compare
9cc6746
to
c89b535
Compare
3100487
to
b966ca2
Compare
cc21469
to
8fb5175
Compare
Add a `PathInitializer` struct to `mc-sgx-dcap-ql` to ensure that the necessary DCAP quote library paths are set prior to making quote library calls. As well as ensuring that the paths are only initialized once.
Previously `PATH_INITIALIZER` was a OneCell, this required the use of undefined behavior to sufficiently test. Now `PATH_INITIALIZER` uses a Lazy Mutex which can be consistently reset for testing purposes
Previously `mc-sgx-ql::PathInitializer::with_paths()` used the same generic type for all the pathlike parameters. This had the side effect that all four paths had to be the same type. Now each pathlike parameter has it's own type.
8fb5175
to
8c9a0b5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Add a
PathInitializer
struct tomc-sgx-dcap-ql
to ensure that thenecessary DCAP quote library paths are set prior to making quote library
calls. As well as ensuring that the paths are only initialized once.