intel / linux-sgx

Intel SGX for Linux*
https://www.intel.com/content/www/us/en/developer/tools/software-guard-extensions/linux-overview.html
Other
1.32k stars 541 forks source link

`RemoteAttestation` does not have `sample_libcrypto.h` #547

Open bsdinis opened 4 years ago

bsdinis commented 4 years ago

SampleCodes RemoteAttestation example requires a sample_libcrypto.h file, which is not in the repository.

Thus, when trying to build with make clean all, this is the output:

% mk clean all
make[1]: Entering directory '/path/to/linux-sgx/SampleCode/RemoteAttestation'
service_provider/ecp.cpp:38:10: fatal error: 'sample_libcrypto.h' file not found
#include "sample_libcrypto.h"
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [Makefile:258: service_provider/ecp.o] Error 1
make[1]: Leaving directory '/path/to/linux-sgx/SampleCode/RemoteAttestation'
make: *** [Makefile:198: all] Error 2

Running find on SampleCode confirms that this file is missing.

$ find . | grep sample_
./RemoteAttestation/isv_app/sample_messages.h
llly commented 4 years ago

You need to build and install SGX SDK installer, then build SampleCode in SGX SDK folder. Not all sample codes are available in SGX source folder.