| // Licensed to the Apache Software Foundation (ASF) under one |
| // or more contributor license agreements. See the NOTICE file |
| // distributed with this work for additional information |
| // regarding copyright ownership. The ASF licenses this file |
| // to you under the Apache License, Version 2.0 (the |
| // "License"); you may not use this file except in compliance |
| // with the License. You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, |
| // software distributed under the License is distributed on an |
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| // KIND, either express or implied. See the License for the |
| // specific language governing permissions and limitations |
| // under the License.. |
| |
| #ifndef ERROR_CODES_H_ |
| #define ERROR_CODES_H_ |
| |
| typedef uint32_t ATTESTATION_STATUS; |
| |
| #define SUCCESS 0x00 |
| #define INVALID_PARAMETER 0xE1 |
| #define VALID_SESSION 0xE2 |
| #define INVALID_SESSION 0xE3 |
| #define ATTESTATION_ERROR 0xE4 |
| #define ATTESTATION_SE_ERROR 0xE5 |
| #define IPP_ERROR 0xE6 |
| #define NO_AVAILABLE_SESSION_ERROR 0xE7 |
| #define MALLOC_ERROR 0xE8 |
| #define ERROR_TAG_MISMATCH 0xE9 |
| #define OUT_BUFFER_LENGTH_ERROR 0xEA |
| #define INVALID_REQUEST_TYPE_ERROR 0xEB |
| #define INVALID_PARAMETER_ERROR 0xEC |
| #define ENCLAVE_TRUST_ERROR 0xED |
| #define ENCRYPT_DECRYPT_ERROR 0xEE |
| #define DUPLICATE_SESSION 0xEF |
| #endif |