瀏覽代碼

[Pal/SGX] Add a helpful debug message when enclave attestation fails

borysp 4 年之前
父節點
當前提交
f31c4071af
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Pal/src/host/Linux-SGX/enclave_framework.c

+ 2 - 2
Pal/src/host/Linux-SGX/enclave_framework.c

@@ -1119,7 +1119,7 @@ int _DkStreamAttestationRequest (PAL_HANDLE stream, void * data,
     }
 
     if (ret == 1) {
-        SGX_DBG(DBG_S, "Not an allowed enclave (mrenclave = %s)\n",
+        SGX_DBG(DBG_S, "Not an allowed enclave (mrenclave = %s). Maybe missing 'sgx.trusted_children' in the manifest file?\n",
                 ALLOCA_BYTES2HEXSTR(att.mrenclave));
         ret = -PAL_ERROR_DENIED;
         goto out;
@@ -1231,7 +1231,7 @@ int _DkStreamAttestationRespond (PAL_HANDLE stream, void * data,
     }
 
     if (ret == 1) {
-        SGX_DBG(DBG_S, "Not an allowed enclave (mrenclave = %s)\n",
+        SGX_DBG(DBG_S, "Not an allowed enclave (mrenclave = %s). Maybe missing 'sgx.trusted_children' in the manifest file?\n",
                 ALLOCA_BYTES2HEXSTR(att.mrenclave));
         ret = -PAL_ERROR_DENIED;
         goto out;