• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "hc_log.h"
17 #include "hc_vector.h"
18 #include "device_auth_defines.h"
19 
20 typedef struct {
21     int64_t requestId;
22     int32_t osAccountId;
23     char *serviceId;
24     uint8_t *randomVal;
25     uint32_t randomLen;
26 } LightSession;
27 
InitLightSessionManager(void)28 int32_t InitLightSessionManager(void)
29 {
30     return HC_SUCCESS;
31 }
32 
DestroyLightSessionManager(void)33 void DestroyLightSessionManager(void)
34 {
35     return;
36 }
37 
QueryLightSession(int64_t requestId,int32_t osAccountId,uint8_t ** randomVal,uint32_t * randomLen,char ** serviceId)38 int32_t QueryLightSession(int64_t requestId, int32_t osAccountId, uint8_t **randomVal,
39     uint32_t *randomLen, char **serviceId)
40 {
41     (void)requestId;
42     (void)osAccountId;
43     (void)*serviceId;
44     (void)*randomVal;
45     (void)*randomLen;
46     return HC_SUCCESS;
47 }
48 
AddLightSession(int64_t requestId,int32_t osAccountId,const char * serviceId,uint8_t * randomVal)49 int32_t AddLightSession(int64_t requestId, int32_t osAccountId, const char *serviceId, uint8_t *randomVal)
50 {
51     (void)requestId;
52     (void)osAccountId;
53     (void)serviceId;
54     (void)randomVal;
55     return HC_SUCCESS;
56 }
57 
DeleteLightSession(int64_t requestId,int32_t osAccountId)58 int32_t DeleteLightSession(int64_t requestId, int32_t osAccountId)
59 {
60     (void)requestId;
61     (void)osAccountId;
62     return HC_SUCCESS;
63 }