aesm_error.h 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 _AESM_ERROR_H_
  32. #define _AESM_ERROR_H_
  33. /*File to define aesm error code*/
  34. typedef enum _aesm_error_t
  35. {
  36. AESM_SUCCESS = 0,
  37. AESM_UNEXPECTED_ERROR = 1,
  38. AESM_NO_DEVICE_ERROR = 2,
  39. AESM_PARAMETER_ERROR = 3,
  40. AESM_EPIDBLOB_ERROR = 4,
  41. AESM_EPID_REVOKED_ERROR = 5,
  42. AESM_GET_LICENSETOKEN_ERROR = 6,
  43. AESM_SESSION_INVALID = 7,
  44. AESM_MAX_NUM_SESSION_REACHED = 8,
  45. AESM_PSDA_UNAVAILABLE = 9,
  46. AESM_EPH_SESSION_FAILED = 10,
  47. AESM_LONG_TERM_PAIRING_FAILED = 11,
  48. AESM_NETWORK_ERROR = 12,
  49. AESM_NETWORK_BUSY_ERROR = 13,
  50. AESM_PROXY_SETTING_ASSIST = 14,
  51. AESM_FILE_ACCESS_ERROR = 15,
  52. AESM_SGX_PROVISION_FAILED = 16,
  53. AESM_SERVICE_STOPPED = 17,
  54. AESM_BUSY = 18,
  55. AESM_BACKEND_SERVER_BUSY = 19,
  56. AESM_UPDATE_AVAILABLE = 20,
  57. AESM_OUT_OF_MEMORY_ERROR = 21,
  58. AESM_MSG_ERROR = 22,
  59. AESM_THREAD_ERROR = 23,
  60. AESM_SGX_DEVICE_NOT_AVAILABLE = 24,
  61. AESM_ENABLE_SGX_DEVICE_FAILED = 25,
  62. AESM_PLATFORM_INFO_BLOB_INVALID_SIG = 26,
  63. AESM_SERVICE_NOT_AVAILABLE = 27,
  64. AESM_KDF_MISMATCH = 28,
  65. AESM_OUT_OF_EPC = 29,
  66. AESM_SERVICE_UNAVAILABLE = 30,
  67. AESM_UNRECOGNIZED_PLATFORM = 31,
  68. } aesm_error_t;
  69. #endif