1 /* 2 * Copyright (c) 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 16 #ifndef EL5_FILEKEY_MANAGER_ERROR_H 17 #define EL5_FILEKEY_MANAGER_ERROR_H 18 19 namespace OHOS { 20 namespace Security { 21 namespace AccessToken { 22 enum El5FilekeyManagerErrCode { 23 EFM_SUCCESS = 0, 24 EFM_ERR_NO_PERMISSION = 201, 25 EFM_ERR_NOT_SYSTEM_APP = 202, 26 EFM_ERR_INVALID_PARAMETER = 401, 27 EFM_ERR_SYSTEMCAP_NOT_SUPPORT = 801, 28 EFM_ERR_INVALID_DATATYPE = 29300001, 29 EFM_ERR_REMOTE_CONNECTION, 30 EFM_ERR_FIND_ACCESS_FAILED, 31 EFM_ERR_ACCESS_RELEASED, 32 EFM_ERR_RELEASE_ACCESS_FAILED, 33 EFM_ERR_IPC_TOKEN_INVALID, 34 EFM_ERR_IPC_READ_DATA, 35 EFM_ERR_IPC_WRITE_DATA, 36 EFM_ERR_SA_GET_PROXY, 37 EFM_ERR_CALL_POLICY_FAILED, 38 EFM_ERR_CALL_POLICY_ERROR, 39 EFM_ERR_DATABASE_FAILED, 40 EFM_ERR_OPEN_FILE_FAILED, 41 EFM_ERR_IOCTL_FAILED, 42 EFM_ERR_KEYID_EXISTED, 43 }; 44 } // namespace AccessToken 45 } // namespace Security 46 } // namespace OHOS 47 #endif // EL5_FILEKEY_MANAGER_ERROR_H 48