1 /*
2  * Copyright (c) 2022-2023 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 CM_IPC_MSG_CODE_H
17 #define CM_IPC_MSG_CODE_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 /* SAID: 3512 */
24 enum CertManagerInterfaceCode {
25     CM_MSG_BASE = 0,
26 
27     CM_MSG_GEN_KEY = CM_MSG_BASE,
28     CM_MSG_GET_CERTIFICATE_LIST,
29     CM_MSG_GET_CERTIFICATE_INFO,
30     CM_MSG_SET_CERTIFICATE_STATUS,
31     CM_MSG_INSTALL_APP_CERTIFICATE,
32     CM_MSG_UNINSTALL_APP_CERTIFICATE,
33     CM_MSG_UNINSTALL_ALL_APP_CERTIFICATE,
34     CM_MSG_GET_APP_CERTIFICATE_LIST,
35     CM_MSG_GET_CALLING_APP_CERTIFICATE_LIST,
36     CM_MSG_GET_APP_CERTIFICATE,
37     CM_MSG_GRANT_APP_CERT,
38     CM_MSG_GET_AUTHED_LIST,
39     CM_MSG_CHECK_IS_AUTHED_APP,
40     CM_MSG_REMOVE_GRANT_APP,
41     CM_MSG_INIT,
42     CM_MSG_UPDATE,
43     CM_MSG_FINISH,
44     CM_MSG_ABORT,
45     CM_MSG_GET_USER_CERTIFICATE_LIST,
46     CM_MSG_GET_USER_CERTIFICATE_INFO,
47     CM_MSG_SET_USER_CERTIFICATE_STATUS,
48     CM_MSG_INSTALL_USER_CERTIFICATE,
49     CM_MSG_UNINSTALL_USER_CERTIFICATE,
50     CM_MSG_UNINSTALL_ALL_USER_CERTIFICATE,
51 
52     /* new cmd type must be added before CM_MSG_MAX */
53     CM_MSG_MAX,
54 };
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 #endif
60