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 "credential_data_manager.h"
17
18 #include "common_defs.h"
19 #include "device_auth_defines.h"
20 #include "hc_dev_info.h"
21 #include "hc_types.h"
22 #include "securec.h"
23
InitQueryCredentialParams(void)24 QueryCredentialParams InitQueryCredentialParams(void)
25 {
26 QueryCredentialParams params = {
27 .credId = NULL,
28 };
29 return params;
30 }
31
CreateCredential(void)32 Credential *CreateCredential(void)
33 {
34 return NULL;
35 }
36
DestroyCredential(Credential * credential)37 void DestroyCredential(Credential *credential)
38 {
39 (void)credential;
40 return;
41 }
42
DeepCopyCredential(const Credential * entry)43 Credential *DeepCopyCredential(const Credential *entry)
44 {
45 (void)entry;
46 return NULL;
47 }
48
ClearCredentialVec(CredentialVec * vec)49 void ClearCredentialVec(CredentialVec *vec)
50 {
51 (void)vec;
52 return;
53 }
54
GenerateReturnCredInfo(const Credential * credential,CJson * returnJson)55 int32_t GenerateReturnCredInfo(const Credential *credential, CJson *returnJson)
56 {
57 (void)credential;
58 (void)returnJson;
59 return IS_ERR_NOT_SUPPORT;
60 }
61
AddCredToDb(int32_t osAccountId,const Credential * entry)62 int32_t AddCredToDb(int32_t osAccountId, const Credential *entry)
63 {
64 (void)osAccountId;
65 (void)entry;
66 return IS_ERR_NOT_SUPPORT;
67 }
68
DelCredential(int32_t osAccountId,const QueryCredentialParams * params)69 int32_t DelCredential(int32_t osAccountId, const QueryCredentialParams *params)
70 {
71 (void)osAccountId;
72 (void)params;
73 return IS_ERR_NOT_SUPPORT;
74 }
75
QueryCredentials(int32_t osAccountId,const QueryCredentialParams * params,CredentialVec * vec)76 int32_t QueryCredentials(int32_t osAccountId, const QueryCredentialParams *params, CredentialVec *vec)
77 {
78 (void)osAccountId;
79 (void)params;
80 (void)vec;
81 return IS_ERR_NOT_SUPPORT;
82 }
83
SaveOsAccountCredDb(int32_t osAccountId)84 int32_t SaveOsAccountCredDb(int32_t osAccountId)
85 {
86 (void)osAccountId;
87 return IS_ERR_NOT_SUPPORT;
88 }
89
InitCredDatabase(void)90 int32_t InitCredDatabase(void)
91 {
92 return IS_ERR_NOT_SUPPORT;
93 }
94
DestroyCredDatabase(void)95 void DestroyCredDatabase(void)
96 {
97 return;
98 }