1 /*
2  * Copyright (c) 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 #include "auth_device_common_key.h"
17 #include "softbus_errcode.h"
18 
19 
AuthLoadDeviceKey(void)20 void AuthLoadDeviceKey(void)
21 {
22 }
23 
AuthUpdateCreateTime(const char * udidHash,int32_t keyType,bool isServer)24 void AuthUpdateCreateTime(const char *udidHash, int32_t keyType, bool isServer)
25 {
26     (void)udidHash;
27     (void)keyType;
28     (void)isServer;
29 }
30 
AuthInsertDeviceKey(const NodeInfo * deviceInfo,const AuthDeviceKeyInfo * deviceKey,AuthLinkType type)31 int32_t AuthInsertDeviceKey(const NodeInfo *deviceInfo, const AuthDeviceKeyInfo *deviceKey, AuthLinkType type)
32 {
33     (void)deviceInfo;
34     (void)deviceKey;
35     (void)type;
36     return SOFTBUS_NOT_IMPLEMENT;
37 }
38 
AuthRemoveDeviceKeyByUdid(const char * udidOrHash)39 void AuthRemoveDeviceKeyByUdid(const char *udidOrHash)
40 {
41     (void)udidOrHash;
42 }
43 
AuthFindDeviceKey(const char * udidHash,int32_t keyType,AuthDeviceKeyInfo * deviceKey)44 int32_t AuthFindDeviceKey(const char *udidHash, int32_t keyType, AuthDeviceKeyInfo *deviceKey)
45 {
46     (void)udidHash;
47     (void)keyType;
48     (void)deviceKey;
49     return SOFTBUS_NOT_IMPLEMENT;
50 }
51 
AuthClearDeviceKey(void)52 void AuthClearDeviceKey(void)
53 {
54 }
55 
AuthFindLatestNormalizeKey(const char * udidHash,AuthDeviceKeyInfo * deviceKey,bool clearOldKey)56 int32_t AuthFindLatestNormalizeKey(const char *udidHash, AuthDeviceKeyInfo *deviceKey, bool clearOldKey)
57 {
58     (void)udidHash;
59     (void)deviceKey;
60     (void)clearOldKey;
61     return SOFTBUS_NOT_IMPLEMENT;
62 }
63 
AuthUpdateNormalizeKeyIndex(const char * udidHash,int64_t index,AuthLinkType type,SessionKey * normalizedKey,bool isServer)64 void AuthUpdateNormalizeKeyIndex(const char *udidHash, int64_t index, AuthLinkType type, SessionKey *normalizedKey,
65     bool isServer)
66 {
67     (void)udidHash;
68     (void)index;
69     (void)type;
70     (void)normalizedKey;
71     (void)isServer;
72 }
73 
AuthUpdateKeyIndex(const char * udidHash,int32_t keyType,int64_t index,bool isServer)74 void AuthUpdateKeyIndex(const char *udidHash, int32_t keyType, int64_t index, bool isServer)
75 {
76     (void)udidHash;
77     (void)keyType;
78     (void)index;
79     (void)isServer;
80 }
81 
AuthFindNormalizeKeyByServerSide(const char * udidHash,bool isServer,AuthDeviceKeyInfo * deviceKey)82 int32_t AuthFindNormalizeKeyByServerSide(const char *udidHash, bool isServer, AuthDeviceKeyInfo *deviceKey)
83 {
84     (void)udidHash;
85     (void)isServer;
86     (void)deviceKey;
87     return SOFTBUS_NOT_IMPLEMENT;
88 }