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 "cred_listener.h"
17 #include "common_defs.h"
18 #include "device_auth_defines.h"
19 #include "hc_types.h"
20 #include "securec.h"
21
OnCredAdd(const char * credId,const char * credInfo)22 void OnCredAdd(const char *credId, const char *credInfo)
23 {
24 (void)credId;
25 (void)credInfo;
26 }
27
OnCredDelete(const char * credId,const char * credInfo)28 void OnCredDelete(const char *credId, const char *credInfo)
29 {
30 (void)credId;
31 (void)credInfo;
32 }
33
OnCredUpdate(const char * credId,const char * credInfo)34 void OnCredUpdate(const char *credId, const char *credInfo)
35 {
36 (void)credId;
37 (void)credInfo;
38 }
39
IsCredListenerSupported(void)40 bool IsCredListenerSupported(void)
41 {
42 return false;
43 }
44
InitCredListener(void)45 int32_t InitCredListener(void)
46 {
47 return IS_ERR_NOT_SUPPORT;
48 }
49
DestroyCredListener(void)50 void DestroyCredListener(void)
51 {
52 return;
53 }
54
AddCredListener(const char * appId,const CredChangeListener * listener)55 int32_t AddCredListener(const char *appId, const CredChangeListener *listener)
56 {
57 (void)appId;
58 (void)listener;
59 return IS_ERR_NOT_SUPPORT;
60 }
61
RemoveCredListener(const char * appId)62 int32_t RemoveCredListener(const char *appId)
63 {
64 (void)appId;
65 return IS_ERR_NOT_SUPPORT;
66 }
67