Skip to content

Commit 968c3f9

Browse files
committed
Look for versioned libsgx_urts.so.2 library in PCKRetrievalTool
Other code is already looking for the versioned libsgx_urts.so.2 library, so switch to that for PCKRetrievalTool too. The unversioned libraries are typically only installed by distros in -devel packages, not the runtime packages. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
1 parent 72c70d6 commit 968c3f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/PCKRetrievalTool/App/utility.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ typedef sgx_status_t (SGXAPI *sgx_create_enclave_func_t)(const LPCSTR file_name,
5959
#else
6060
#define PCE_ENCLAVE_NAME "libsgx_pce.signed.so.1"
6161
#define ID_ENCLAVE_NAME "libsgx_id_enclave.signed.so.1"
62-
#define SGX_URTS_LIBRARY "libsgx_urts.so"
62+
#define SGX_URTS_LIBRARY "libsgx_urts.so.2"
6363
#define SGX_MULTI_PACKAGE_AGENT_UEFI_LIBRARY "libmpa_uefi.so.1"
6464
#define FINDFUNCTIONSYM dlsym
6565
#define CLOSELIBRARYHANDLE dlclose
@@ -181,7 +181,7 @@ bool get_urts_library_handle()
181181
#else
182182
sgx_urts_handle = dlopen(SGX_URTS_LIBRARY, RTLD_LAZY);
183183
if (sgx_urts_handle == NULL) {
184-
printf("ERROR: didn't find the sgx_urts.so library, please make sure you have installed sgx_urts installer package. \n");
184+
printf("ERROR: didn't find the " SGX_URTS_LIBRARY " library, please make sure you have installed sgx_urts installer package. \n");
185185
return false;
186186
}
187187
#endif

0 commit comments

Comments
 (0)