1 /*
2 * Copyright (C) 2025 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 #include "identity_service.h"
17
18 #include "common_defs.h"
19
AddCredential(int32_t osAccountId,const char * requestParams,char ** returnData)20 int32_t AddCredential(int32_t osAccountId, const char *requestParams, char **returnData)
21 {
22 (void)osAccountId;
23 (void)requestParams;
24 (void)returnData;
25 return IS_ERR_NOT_SUPPORT;
26 }
27
ExportCredential(int32_t osAccountId,const char * credId,char ** returnData)28 int32_t ExportCredential(int32_t osAccountId, const char *credId, char **returnData)
29 {
30 (void)osAccountId;
31 (void)credId;
32 (void)returnData;
33 return IS_ERR_NOT_SUPPORT;
34 }
35
QueryCredentialByParams(int32_t osAccountId,const char * requestParams,char ** returnData)36 int32_t QueryCredentialByParams(int32_t osAccountId, const char *requestParams, char **returnData)
37 {
38 (void)osAccountId;
39 (void)requestParams;
40 (void)returnData;
41 return IS_ERR_NOT_SUPPORT;
42 }
43
QueryCredInfoByCredId(int32_t osAccountId,const char * credId,char ** returnData)44 int32_t QueryCredInfoByCredId(int32_t osAccountId, const char *credId, char **returnData)
45 {
46 (void)osAccountId;
47 (void)credId;
48 (void)returnData;
49 return IS_ERR_NOT_SUPPORT;
50 }
51
DeleteCredential(int32_t osAccountId,const char * credId)52 int32_t DeleteCredential(int32_t osAccountId, const char *credId)
53 {
54 (void)osAccountId;
55 (void)credId;
56 return IS_ERR_NOT_SUPPORT;
57 }
58
DeleteCredByParams(int32_t osAccountId,const char * requestParams,char ** returnData)59 int32_t DeleteCredByParams(int32_t osAccountId, const char *requestParams, char **returnData)
60 {
61 (void)osAccountId;
62 (void)requestParams;
63 (void)returnData;
64 return IS_ERR_NOT_SUPPORT;
65 }
66
UpdateCredInfo(int32_t osAccountId,const char * credId,const char * requestParams)67 int32_t UpdateCredInfo(int32_t osAccountId, const char *credId, const char *requestParams)
68 {
69 (void)osAccountId;
70 (void)credId;
71 (void)requestParams;
72 return IS_ERR_NOT_SUPPORT;
73 }
74
AgreeCredential(int32_t osAccountId,const char * selfCredId,const char * requestParams,char ** returnData)75 int32_t AgreeCredential(int32_t osAccountId, const char *selfCredId, const char *requestParams, char **returnData)
76 {
77 (void)osAccountId;
78 (void)selfCredId;
79 (void)requestParams;
80 (void)returnData;
81 return IS_ERR_NOT_SUPPORT;
82 }
83
BatchUpdateCredentials(int32_t osAccountId,const char * requestParams,char ** returnData)84 int32_t BatchUpdateCredentials(int32_t osAccountId, const char *requestParams, char **returnData)
85 {
86 (void)osAccountId;
87 (void)requestParams;
88 (void)returnData;
89 return IS_ERR_NOT_SUPPORT;
90 }
91
RegisterChangeListener(const char * appId,CredChangeListener * listener)92 int32_t RegisterChangeListener(const char *appId, CredChangeListener *listener)
93 {
94 (void)appId;
95 (void)listener;
96 return IS_ERR_NOT_SUPPORT;
97 }
98
UnregisterChangeListener(const char * appId)99 int32_t UnregisterChangeListener(const char *appId)
100 {
101 (void)appId;
102 return IS_ERR_NOT_SUPPORT;
103 }
104
DestroyInfo(char ** returnData)105 void DestroyInfo(char **returnData)
106 {
107 (void)returnData;
108 return;
109 }
110
InitIdentityService(void)111 int32_t InitIdentityService(void)
112 {
113 return IS_SUCCESS;
114 }
115
DestroyIdentityService(void)116 void DestroyIdentityService(void)
117 {
118 return;
119 }