I need to use openssl in the enclave, and it is said that there would be a X509Verifier project in src folder with trusted openssl, but I can't find it in the current SDK folder on Windows. How can I get the sample code or is it recommended not to use this library directly in the newest version of sgx on Windows?
Please download the Intel SGX version 1.6 and install on your machine. after installation you will find the source of X509Verifier project under "C:\Program Files (x86)\Intel\IntelSGXSDK\src\X509Verifier"
Go to the link https://software.intel.com/en-us/sgx-sdk and click the download option. download the previous version of SDK instead of latest one(you will able to see the previous version as below the page)
If you're working with the Windows 1.7 SDK, my recommendation is that you use the SGX SSL Add-on instead, which is available at the download page: https://software.intel.com/en-us/sgx-sdk/download. The documentation should explain what API has been validated.