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 #include <stdlib.h>
20 #include <securec.h>
21
AuthLoadDeviceKey(void)22 void AuthLoadDeviceKey(void)
23 {
24 return;
25 }
26
AuthInsertDeviceKey(const NodeInfo * deviceInfo,const AuthDeviceKeyInfo * deviceKey)27 int32_t AuthInsertDeviceKey(const NodeInfo *deviceInfo, const AuthDeviceKeyInfo *deviceKey)
28 {
29 (void)deviceInfo;
30 (void)deviceKey;
31 return SOFTBUS_NOT_IMPLEMENT;
32 }
33
AuthRemoveDeviceKeyByUdid(const char * udidOrHash)34 void AuthRemoveDeviceKeyByUdid(const char *udidOrHash)
35 {
36 (void)udidOrHash;
37 return;
38 }
39
AuthRemoveDeviceKey(const char * udidHash,int32_t keyType)40 void AuthRemoveDeviceKey(const char *udidHash, int32_t keyType)
41 {
42 (void)udidHash;
43 (void)keyType;
44 return;
45 }
46
AuthFindDeviceKey(const char * udidHash,int32_t keyType,AuthDeviceKeyInfo * deviceKey)47 int32_t AuthFindDeviceKey(const char *udidHash, int32_t keyType, AuthDeviceKeyInfo *deviceKey)
48 {
49 (void)udidHash;
50 (void)keyType;
51 (void)deviceKey;
52 return SOFTBUS_NOT_IMPLEMENT;
53 }
54
AuthClearDeviceKey(void)55 void AuthClearDeviceKey(void)
56 {
57 return;
58 }
59
AuthUpdateKeyIndex(const char * udidHash,int32_t keyType,int64_t index,bool isServer)60 void AuthUpdateKeyIndex(const char *udidHash, int32_t keyType, int64_t index, bool isServer)
61 {
62 (void)udidHash;
63 (void)keyType;
64 (void)index;
65 (void)isServer;
66 return;
67 }
68