<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic What does the error code 0x4004 mean? in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/What-does-the-error-code-0x4004-mean/m-p/1164027#M2973</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I tried to build the SampleEnclave provided by SGX SDK for linux in release mode, but the enclave didn't work.&lt;/P&gt;&lt;P&gt;To build it in release mode, (1) I set the option &amp;lt;DisableDebug&amp;gt; in Enclave.config.xml to 0,&amp;nbsp; (2) passed 0 as the 2nd parameter of API sgx_create_enclave instead of the macro SGX_DEBUG_FLAG, and (3) finally, when the build finished, I signed the enclave with the file Enclave/Enclave_private.pem.&lt;/P&gt;&lt;P&gt;When I run the app, the enclave returned the error code 0x4004. As mentioned in&amp;nbsp; the "Intel SGX SDK Developer Reference", 0x4004 means "Enclave has no privilege to get a launch token.". I can't understand it very well,&amp;nbsp; the problem seems happened when the app trying to load the enclave, but I don't know why.&lt;/P&gt;&lt;P&gt;I want to know the reason why the error code 0x4004 is returned and how to fix it?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2019 14:44:03 GMT</pubDate>
    <dc:creator>Shi__Wenjie</dc:creator>
    <dc:date>2019-09-17T14:44:03Z</dc:date>
    <item>
      <title>What does the error code 0x4004 mean?</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/What-does-the-error-code-0x4004-mean/m-p/1164027#M2973</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I tried to build the SampleEnclave provided by SGX SDK for linux in release mode, but the enclave didn't work.&lt;/P&gt;&lt;P&gt;To build it in release mode, (1) I set the option &amp;lt;DisableDebug&amp;gt; in Enclave.config.xml to 0,&amp;nbsp; (2) passed 0 as the 2nd parameter of API sgx_create_enclave instead of the macro SGX_DEBUG_FLAG, and (3) finally, when the build finished, I signed the enclave with the file Enclave/Enclave_private.pem.&lt;/P&gt;&lt;P&gt;When I run the app, the enclave returned the error code 0x4004. As mentioned in&amp;nbsp; the "Intel SGX SDK Developer Reference", 0x4004 means "Enclave has no privilege to get a launch token.". I can't understand it very well,&amp;nbsp; the problem seems happened when the app trying to load the enclave, but I don't know why.&lt;/P&gt;&lt;P&gt;I want to know the reason why the error code 0x4004 is returned and how to fix it?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 14:44:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/What-does-the-error-code-0x4004-mean/m-p/1164027#M2973</guid>
      <dc:creator>Shi__Wenjie</dc:creator>
      <dc:date>2019-09-17T14:44:03Z</dc:date>
    </item>
    <item>
      <title>the problem is located:  (2)</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/What-does-the-error-code-0x4004-mean/m-p/1164028#M2974</link>
      <description>&lt;P&gt;the problem is located:&amp;nbsp;&amp;nbsp;(2) passed 0 as the 2nd parameter of API sgx_create_enclave instead of the macro SGX_DEBUG_FLAG&lt;/P&gt;&lt;P&gt;When you tried to load your enclave, your enclave's signing key should in Lanuch Enclave's white-list.&amp;nbsp; Based on your description, your are using your owner signing key,&amp;nbsp; So the create enclave operation would fail.&lt;/P&gt;&lt;P&gt;To let the APP work, please passed 1 as the 2nd parameter of API sgx_create_enclave.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 01:16:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/What-does-the-error-code-0x4004-mean/m-p/1164028#M2974</guid>
      <dc:creator>Junli_S_Intel</dc:creator>
      <dc:date>2019-09-18T01:16:41Z</dc:date>
    </item>
  </channel>
</rss>

