• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023-2024 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 permission and
13  * limitations under the License.
14  */
15 
16 #include "auth_deviceprofile.h"
17 
IsPotentialTrustedDeviceDp(const char * deviceIdHash,bool isOnlyPointToPoint)18 bool IsPotentialTrustedDeviceDp(const char *deviceIdHash, bool isOnlyPointToPoint)
19 {
20     (void)deviceIdHash;
21     (void)isOnlyPointToPoint;
22     return true;
23 }
24 
DpHasAccessControlProfile(const char * udid,bool isNeedUserId,int32_t localUserId)25 bool DpHasAccessControlProfile(const char *udid, bool isNeedUserId, int32_t localUserId)
26 {
27     (void)udid;
28     (void)isNeedUserId;
29     (void)localUserId;
30     return false;
31 }
32 
UpdateDpSameAccount(int64_t accountId,const char * deviceId,int32_t peerUserId)33 void UpdateDpSameAccount(int64_t accountId, const char *deviceId, int32_t peerUserId)
34 {
35     (void)accountId;
36     (void)deviceId;
37     (void)peerUserId;
38 }
39 
DelNotTrustDevice(const char * udid)40 void DelNotTrustDevice(const char *udid)
41 {
42     (void)udid;
43 }
44 
DelSessionKeyProfile(int32_t sessionKeyId)45 void DelSessionKeyProfile(int32_t sessionKeyId)
46 {
47     (void)sessionKeyId;
48 }
49 
GetSessionKeyProfile(int32_t sessionKeyId,uint8_t * sessionKey,uint32_t * length)50 bool GetSessionKeyProfile(int32_t sessionKeyId, uint8_t *sessionKey, uint32_t *length)
51 {
52     (void)sessionKeyId;
53     (void)sessionKey;
54     (void)length;
55     return false;
56 }