1 /*
2 * Copyright (c) 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 permissions and
13 * limitations under the License.
14 */
15
16 #include "auth_attest_interface.h"
17
18 #include "softbus_errcode.h"
19 #include "softbus_error_code.h"
20 #include <stdint.h>
21
IsSupportUDIDAbatement(void)22 bool IsSupportUDIDAbatement(void)
23 {
24 return false;
25 }
26
IsNeedUDIDAbatement(const AuthSessionInfo * info)27 bool IsNeedUDIDAbatement(const AuthSessionInfo *info)
28 {
29 (void)info;
30 return false;
31 }
32
CalcHKDF(const uint8_t * ikm,uint32_t ikmLen,uint8_t * out,uint32_t outLen)33 bool CalcHKDF(const uint8_t *ikm, uint32_t ikmLen, uint8_t *out, uint32_t outLen)
34 {
35 (void)ikm;
36 (void)ikmLen;
37 (void)out;
38 (void)outLen;
39 return false;
40 }
41
GenerateCertificate(SoftbusCertChain * softbusCertChain,const AuthSessionInfo * info)42 int32_t GenerateCertificate(SoftbusCertChain *softbusCertChain, const AuthSessionInfo *info)
43 {
44 (void)softbusCertChain;
45 (void)info;
46 return SOFTBUS_NOT_IMPLEMENT;
47 }
48
VerifyCertificate(SoftbusCertChain * softbusCertChain,const NodeInfo * nodeInfo,const AuthSessionInfo * info)49 int32_t VerifyCertificate(SoftbusCertChain *softbusCertChain, const NodeInfo *nodeInfo, const AuthSessionInfo *info)
50 {
51 (void)softbusCertChain;
52 (void)nodeInfo;
53 (void)info;
54 return SOFTBUS_NOT_IMPLEMENT;
55 }
56
InitSoftbusChain(SoftbusCertChain * softbusCertChain)57 int32_t InitSoftbusChain(SoftbusCertChain *softbusCertChain)
58 {
59 (void)softbusCertChain;
60 return SOFTBUS_NOT_IMPLEMENT;
61 }
62
FreeSoftbusChain(SoftbusCertChain * softbusCertChain)63 void FreeSoftbusChain(SoftbusCertChain *softbusCertChain)
64 {
65 (void)softbusCertChain;
66 }
67
IsCertAvailable(void)68 bool IsCertAvailable(void)
69 {
70 return true;
71 }
72