event_strings.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /*
  2. * Copyright (C) 2011-2018 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. #ifndef _EVENT_STRINGS_H_
  32. #define _EVENT_STRINGS_H_
  33. typedef enum {
  34. SGX_EVENT_EPID_PROV_FAILURE, /*network*/
  35. SGX_EVENT_EPID_BLOB_PERSISTENT_STROAGE_FAILURE,
  36. SGX_EVENT_PID_SIGNATURE_FAILURE,
  37. SGX_EVENT_PSE_CERT_PROV_FAILURE,
  38. SGX_EVENT_OCSP_FAILURE,
  39. SGX_EVENT_DAL_COMM_FAILURE, /*communication*/
  40. SGX_EVENT_DISABLED,
  41. SGX_EVENT_SERVICE_UNAVAILABLE,
  42. SGX_EVENT_AESM_EXIT,
  43. SGX_EVENT_PSE_CERT_REVOCATION,
  44. SGX_EVENT_ME_EPID_GROUP_REVOCATION,
  45. SGX_EVENT_EPID_REVOCATION, /*SigRL fail*/
  46. SGX_EVENT_EPID_INTEGRITY_ERROR,
  47. SGX_EVENT_LTP_BLOB_INTEGRITY_ERROR,
  48. SGX_EVENT_LTP_BLOB_INVALID_ERROR,
  49. SGX_EVENT_EPID11_SIGRL_INTEGRITY_ERROR,
  50. SGX_EVENT_EPID11_PRIVRL_INTEGRITY_ERROR,
  51. SGX_EVENT_EPID20_SIGRL_INTEGRITY_ERROR,
  52. SGX_EVENT_EPID11_RL_RETRIEVAL_FAILURE,
  53. SGX_EVENT_EPID_PROV_INTEGRITY_ERROR,
  54. SGX_EVENT_PSE_CERT_PROV_INTEGRITY_ERROR,
  55. SGX_EVENT_OCSP_RESPONSE_ERROR, /*based on non-crypto checks that AESM does*/
  56. SGX_EVENT_DAL_SIGMA_ERROR, /*DAL returns error during Sigma protocol*/
  57. SGX_EVENT_LTP_FAILURE, /*other than above*/
  58. SGX_EVENT_DAL_NOT_AVAILABLE_ERROR,
  59. SGX_EVENT_EPID11_GROUP_CERT_PROV_ERROR,
  60. SGX_EVENT_PSE_CERT_PROV_PROTOCOL_RESPONSE_FAILURE,
  61. SGX_EVENT_PSE_CERT_PROV_GENERAL_RESPONSE_FAILURE,
  62. SGX_EVENT_ME_EPID_SIG_REVOCATION,
  63. SGX_EVENT_ME_EPID_KEY_REVOCATION,
  64. SGX_EVENT_SIGMA_S2_INTEGRITY_ERROR,
  65. SGX_EVENT_DAL_SERVICE_ERROR,
  66. SGX_EVENT_PSE_ATTESTATION_ERROR,
  67. SGX_EVENT_OUT_OF_EPC,
  68. SGX_EVENT_PCD_NOT_AVAILABLE,
  69. SGX_EVENT_LE_LOAD_FAIL,
  70. }sgx_event_string_table_t;
  71. extern const char* g_event_string_table[];
  72. typedef enum {
  73. SGX_ADMIN_EVENT_AESM_STARTED,
  74. SGX_ADMIN_EVENT_AESM_STOPPED,
  75. SGX_ADMIN_EVENT_SGX_IS_ENABLED,
  76. SGX_ADMIN_EVENT_SGX_IS_DISABLED,
  77. SGX_ADMIN_EVENT_SGX_ENABLE_REQUEST,
  78. SGX_ADMIN_EVENT_EPID_PROV_START,
  79. SGX_ADMIN_EVENT_EPID_PROV_SUCCESS,
  80. SGX_ADMIN_EVENT_EPID_PROV_FAIL_NW,
  81. SGX_ADMIN_EVENT_EPID_PROV_FAIL_PSWVER,
  82. SGX_ADMIN_EVENT_EPID_PROV_FAIL,
  83. SGX_ADMIN_EVENT_PS_INIT_START,
  84. SGX_ADMIN_EVENT_PS_INIT_SUCCESS,
  85. SGX_ADMIN_EVENT_PS_INIT_FAIL_NW,
  86. SGX_ADMIN_EVENT_PS_INIT_FAIL_PSWVER,
  87. SGX_ADMIN_EVENT_PS_INIT_FAIL_CERT,
  88. SGX_ADMIN_EVENT_PS_INIT_FAIL_LTP,
  89. SGX_ADMIN_EVENT_PS_INIT_FAIL_DAL,
  90. SGX_ADMIN_EVENT_PS_INIT_FAIL,
  91. SGX_ADMIN_EVENT_PS_DAL_ERROR,
  92. SGX_ADMIN_EVENT_PS_CERT_ERROR,
  93. SGX_ADMIN_EVENT_PS_ERROR,
  94. SGX_ADMIN_EVENT_WL_UPDATE_START,
  95. SGX_ADMIN_EVENT_WL_UPDATE_SUCCESS,
  96. SGX_ADMIN_EVENT_WL_UPDATE_FAIL,
  97. SGX_ADMIN_EVENT_WL_UPDATE_NETWORK_FAIL,
  98. SGX_ADMIN_EVENT_PCD_NOT_AVAILABLE,
  99. SGX_ADMIN_EVENT_EPID_PROV_FAIL_REVOKED,
  100. SGX_ADMIN_EVENT_PS_RESOURCE_ERROR,
  101. SGX_ADMIN_EVENT_EPID_PROV_BACKEND_PROTOCOL_ERROR,
  102. }sgx_admin_event_string_table_t;
  103. extern const char* g_admin_event_string_table[];
  104. #endif