1 /* 2 * Copyright (c) 2024-2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 #ifndef SIGNATURETOOLS_INDUSTRIAL_BUS_ERRNO_H 16 #define SIGNATURETOOLS_INDUSTRIAL_BUS_ERRNO_H 17 18 namespace OHOS { 19 namespace SignatureTools { 20 21 const int RET_OK = 0; 22 const int RET_FAILED = -1; 23 24 const int COMMAND_ERROR = -101; 25 /** 26 * Enum constant FILE_NOT_FOUND. 27 */ 28 const int FILE_NOT_FOUND = -102; 29 /** 30 * Enum constant IO_ERROR. 31 */ 32 const int IO_ERROR = -103; 33 /** 34 * Enum constant NOT_SUPPORT_ERROR. 35 */ 36 const int NOT_SUPPORT_ERROR = -104; 37 /** 38 * Enum constant SIGN_ERROR. 39 */ 40 const int SIGN_ERROR = -105; 41 /** 42 * Enum constant VERIFY_ERROR. 43 */ 44 const int VERIFY_ERROR = -106; 45 /** 46 * Enum constant COMMAND_PARAM_ERROR. 47 */ 48 const int COMMAND_PARAM_ERROR = -107; 49 /** 50 * Enum constant CERTIFICATE_ERROR 51 */ 52 const int CERTIFICATE_ERROR = -108; 53 /** 54 * Enum constant KEY_ALIAS_ERROR. 55 */ 56 const int KEY_ALIAS_ERROR = -109; 57 /** 58 * Enum constant INVALID_ERROR. 59 */ 60 const int INVALIDPARAM_ERROR = -110; 61 /** 62 * Enum constant ZIP_ERROR. 63 */ 64 const int ZIP_ERROR = -111; 65 /** 66 * Enum constant FORMAT_ERROR. 67 */ 68 const int FORMAT_ERROR = -112; 69 /** 70 * Enum constant PARSE_ERROR. 71 */ 72 const int PARSE_ERROR = -113; 73 /** 74 * Enum constant KEY_PASSWORD_ERROR. 75 */ 76 const int KEY_PASSWORD_ERROR = -114; 77 /** 78 * Enum constant KEYSTORE_PASSWORD_ERROR. 79 */ 80 const int KEYSTORE_PASSWORD_ERROR = -115; 81 /** 82 * Enum constant KEYSTORE_STRUCTURE_ERROR. 83 */ 84 const int KEYSTORE_STRUCTURE_ERROR = -116; 85 /** 86 * Enum constant PROVISION_INVALID_ERROR. 87 */ 88 const int PROVISION_INVALID_ERROR = -117; 89 90 } // namespace SignatureTools 91 } // namespace OHOS 92 #endif // SIGNATURETOOLS_INDUSTRIAL_BUS_ERRNO_H