event_strings.cpp 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /*
  2. * Copyright (C) 2011-2017 Intel Corporation. All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions
  6. * are met:
  7. *
  8. * * Redistributions of source code must retain the above copyright
  9. * notice, this list of conditions and the following disclaimer.
  10. * * Redistributions in binary form must reproduce the above copyright
  11. * notice, this list of conditions and the following disclaimer in
  12. * the documentation and/or other materials provided with the
  13. * distribution.
  14. * * Neither the name of Intel Corporation nor the names of its
  15. * contributors may be used to endorse or promote products derived
  16. * from this software without specific prior written permission.
  17. *
  18. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  19. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  20. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  21. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  22. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  23. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  24. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  25. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  26. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  27. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29. *
  30. */
  31. const char* g_event_string_table[] = {
  32. "SGX EPID provisioning network failure", // SGX_EVENT_EPID_PROV_FAILURE //network
  33. "Fail to save attestation key in persistent storage",
  34. // SGX_EVENT_EPID_BLOB_PERSISTENT_STROAGE_FAILURE
  35. "Platform Info Blob Signature Error", // SGX_EVENT_PIB_SIGNATURE_FAILURE,
  36. "PSE certificate provisioning failure", // SGX_EVENT_PSE_CERT_PROV_FAILURE //network
  37. "OCSP failure", // SGX_EVENT_OCSP_FAILURE //network
  38. "DAL failure", // SGX_EVENT_DAL_COMM_FAILURE //communication
  39. "SGX disabled", // SGX_EVENT_DISABLED
  40. "SGX Service unavailable", // SGX_EVENT_SERVICE_UNAVAILABLE
  41. "SGX AESM will exit", // SGX_EVENT_AESM_EXIT
  42. "PSE certificate revoked", // SGX_EVENT_PSE_CERT_REVOCATION
  43. "PCH EPID group revoked", // SGX_EVENT_ME_EPID_GROUP_REVOCATION
  44. "SGX EPID revocation", // SGX_EVENT_EPID_REVOCATION //SigRL fail
  45. "SGX EPID blob integrity error", // SGX_EVENT_EPID_INTEGRITY_ERROR
  46. "LTP blob integrity error", // SGX_EVENT_LTP_BLOB_INTEGRITY_ERROR
  47. "LTP blob invalid error", //SGX_EVENT_LTP_BLOB_INVALID_ERROR
  48. "PCH EPID SigRL integrity error", // SGX_EVENT_EPID11_SIGRL_INTEGRITY_ERROR
  49. "PCH EPID PrivRL integrity error", // SGX_EVENT_EPID11_PRIVRL_INTEGRITY_ERROR
  50. "SGX EPID SigRL integrity error", // SGX_EVENT_EPID20_SIGRL_INTEGRITY_ERROR
  51. "PCH EPID RL retrieval failure", // SGX_EVENT_EPID11_RL_RETRIEVAL_FAILURE
  52. "Integrity error during SGX EPID provisioning", // SGX_EVENT_EPID_PROV_INTEGRITY_ERROR
  53. "Integrity error during PSE certificate provisioning",
  54. // SGX_EVENT_PSE_CERT_PROV_INTEGRITY_ERROR
  55. "OCSP response error", // SGX_EVENT_OCSP_RESPONSE_ERROR //based on non-crypto checks that AESM does
  56. "DAL SIGMA error", // SGX_EVENT_DAL_SIGMA_ERROR //DAL returns error during Sigma protocol
  57. "LTP failure", // SGX_EVENT_LTP_FAILURE //other than above
  58. "DAL not installed or broken installation", // SGX_EVENT_DAL_NOT_AVAILABLE_ERROR //other than above
  59. "PCH EPID group certificate provisioning error",
  60. // SGX_EVENT_EPID11_GROUP_CERT_PROV_ERROR
  61. "PSE certificate provisioning failure (Server Protocol Response %d)",
  62. // SGX_EVENT_PSE_CERT_PROV_PROTOCOL_RESPONSE_FAILURE //backend server protocol
  63. "PSE certificate provisioning failure (Server General Response %d)",
  64. // SGX_EVENT_PSE_CERT_PROV_GENERAL_RESPONSE_FAILURE //backend server status
  65. "PCH EPID signature revoked", // SGX_EVENT_ME_EPID_SIG_REVOCATION,
  66. "PCH EPID key revoked", // SGX_EVENT_ME_EPID_KEY_REVOCATION,
  67. "SIGMA S2 integrity error", // SGX_EVENT_SIGMA_S2_INTEGRITY_ERROR
  68. "DAL service layer error", // SGX_EVENT_DAL_SERVICE_ERROR
  69. "PSE attestation error", // SGX_EVENT_PSE_ATTESTATION_ERROR
  70. "No enough EPC to load", // SGX_EVENT_OUT_OF_EPC
  71. "Fail to read extended epid group blob. We will use default blob with ID==0",
  72. "Fail to load LE",
  73. };
  74. /*
  75. * Enterprise Customer targeted event string table for ADMIN log events. Don't change these
  76. * strings unless there is a need, since customers may be looking for specific event strings in
  77. * the Windows Event Log.
  78. */
  79. const char* g_admin_event_string_table[] = {
  80. "AESM Service started", // SGX_ADMIN_EVENT_AESM_STARTED
  81. "AESM Service stopped or paused", // SGX_ADMIN_EVENT_AESM_STOPPED
  82. "SGX is Enabled at AESM Service startup", // SGX_ADMIN_EVENT_SGX_IS_ENABLED
  83. "SGX is Disabled at AESM Service startup", // SGX_ADMIN_EVENT_SGX_IS_DISABLED
  84. "AESM Enable SGX request", // SGX_ADMIN_EVENT_SGX_ENABLE_REQUEST
  85. "EPID Provisioning initiated", // SGX_ADMIN_EVENT_EPID_PROV_START
  86. "EPID Provisioning successful", // SGX_ADMIN_EVENT_EPID_PROV_SUCCESS
  87. "EPID Provisioning failed due to network error", // SGX_ADMIN_EVENT_EPID_PROV_FAIL_NW
  88. "EPID Provisioning failed. PSW update is required", // SGX_ADMIN_EVENT_EPID_PROV_FAIL_PSWVER
  89. "EPID Provisioning failed", // SGX_ADMIN_EVENT_EPID_PROV_FAIL
  90. "Platform Services initializing", // SGX_ADMIN_EVENT_PS_INIT_START
  91. "Platform Services initialized successfully", // SGX_ADMIN_EVENT_PS_INIT_SUCCESS
  92. "Platform Services initialization failed due to network error", // SGX_ADMIN_EVENT_PS_INIT_FAIL_NW
  93. "Platform Services initialization failed. PSW update is required", // SGX_ADMIN_EVENT_PS_INIT_FAIL_PSWVER
  94. "Platform Services initialization failed due to certificate provisioning failure", // SGX_ADMIN_EVENT_PS_INIT_FAIL_CERT
  95. "Platform Services initialization failed due to Long Term Pairing failure", // SGX_ADMIN_EVENT_PS_INIT_FAIL_LTP
  96. "Platform Services initialization failed due to DAL error", // SGX_ADMIN_EVENT_PS_INIT_FAIL_DAL
  97. "Platform Services initialization failed", // SGX_ADMIN_EVENT_PS_INIT_FAIL
  98. "Platform Services error, DAL related error", // SGX_ADMIN_EVENT_PS_DAL_ERROR
  99. "Platform Services error, certificate error", // SGX_ADMIN_EVENT_PS_CERT_ERROR
  100. "Platform Services error", // SGX_ADMIN_EVENT_PS_ERROR
  101. "White List update requested", // SGX_ADMIN_EVENT_WL_UPDATE_START
  102. "White list update request successful", // SGX_ADMIN_EVENT_WL_UPDATE_SUCCESS
  103. "White List update failed", // SGX_ADMIN_EVENT_WL_UPDATE_FAIL
  104. "White List update failed due to network error", // SGX_ADMIN_EVENT_WL_UPDATE_NETWORK_FAIL
  105. "Failed to get extended epid group ID, defaulting to ID=0", // SGX_ADMIN_EVENT_PCD_NOT_AVAILABLE
  106. "EPID Provisioning failed. Platform is revoked.", // SGX_ADMIN_EVENT_EPID_PROV_FAIL_REVOKED
  107. "Platform Services error, resource limit reached", // SGX_ADMIN_EVENT_PS_RESOURCE_ERROR
  108. "EPID Provisioning protocol error reported by Backend", // SGX_ADMIN_EVENT_EPID_PROV_BACKEND_PROTOCOL_ERROR
  109. };