Skip to content
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

Merged
merged 3 commits into from
Oct 20, 2022
Merged

Commits on Oct 18, 2022

  1. Add PathInitializer to mc-sgx-dcap-ql

    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.
    nick-mobilecoin committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    74de1b4 View commit details
    Browse the repository at this point in the history
  2. Change PATH_INITIALIZER to a lazy mutex

    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
    nick-mobilecoin committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    02c43f6 View commit details
    Browse the repository at this point in the history
  3. Use separate types per path entry.

    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.
    nick-mobilecoin committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    8c9a0b5 View commit details
    Browse the repository at this point in the history