• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_error_code.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 
AuthIsLatestNormalizeKeyInTime(const char * udidHash,uint64_t time)64 bool AuthIsLatestNormalizeKeyInTime(const char *udidHash, uint64_t time)
65 {
66     (void)udidHash;
67     (void)time;
68     return true;
69 }
70 
AuthUpdateNormalizeKeyIndex(const char * udidHash,int64_t index,AuthLinkType type,SessionKey * normalizedKey,bool isServer)71 void AuthUpdateNormalizeKeyIndex(const char *udidHash, int64_t index, AuthLinkType type, SessionKey *normalizedKey,
72     bool isServer)
73 {
74     (void)udidHash;
75     (void)index;
76     (void)type;
77     (void)normalizedKey;
78     (void)isServer;
79 }
80 
AuthUpdateKeyIndex(const char * udidHash,int32_t keyType,int64_t index,bool isServer)81 void AuthUpdateKeyIndex(const char *udidHash, int32_t keyType, int64_t index, bool isServer)
82 {
83     (void)udidHash;
84     (void)keyType;
85     (void)index;
86     (void)isServer;
87 }
88 
AuthFindNormalizeKeyByServerSide(const char * udidHash,bool isServer,AuthDeviceKeyInfo * deviceKey)89 int32_t AuthFindNormalizeKeyByServerSide(const char *udidHash, bool isServer, AuthDeviceKeyInfo *deviceKey)
90 {
91     (void)udidHash;
92     (void)isServer;
93     (void)deviceKey;
94     return SOFTBUS_NOT_IMPLEMENT;
95 }
96