Set misc_attr in the top level sgx_create_enclave if _create_enclave
fails. This provides the user with the platform's capabilities when
sgx_create_enclave fails for any reason other than a parameter error.
Previously the misc_attr was only set upon failure if build_image
failed, which was not helpful when sgx_create_enclave failed due to
an attribute error, e.g. misc_select, as the flow aborted before it
reached build_image.
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
This release is used in conjunction with the linux-sgx-driver Intial release:
https://github.com/01org/linux-sgx-driver
commit-id: 0e865ce5e6b297a787bcdc12d98bada8174be6d7
Intel-id: 33399
Signed-off-by: Angie Chinchilla <angie.v.chinchilla@intel.com>