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 "cert_operation.h"
17 #include "device_auth_defines.h"
18
GetAccountRelatedCredInfo(int32_t osAccountId,const char * groupId,const char * deviceId,bool isUdid,IdentityInfo * info)19 int32_t GetAccountRelatedCredInfo(
20 int32_t osAccountId, const char *groupId, const char *deviceId, bool isUdid, IdentityInfo *info)
21 {
22 (void)osAccountId;
23 (void)groupId;
24 (void)deviceId;
25 (void)isUdid;
26 (void)info;
27 return HC_ERR_NOT_SUPPORT;
28 }
29
GetAccountAsymSharedSecret(int32_t osAccountId,const char * peerUserId,const CertInfo * peerCertInfo,Uint8Buff * sharedSecret)30 int32_t GetAccountAsymSharedSecret(int32_t osAccountId, const char *peerUserId, const CertInfo *peerCertInfo,
31 Uint8Buff *sharedSecret)
32 {
33 (void)osAccountId;
34 (void)peerUserId;
35 (void)peerCertInfo;
36 (void)sharedSecret;
37 return HC_ERR_NOT_SUPPORT;
38 }
39
GetAccountSymSharedSecret(const CJson * in,const CJson * urlJson,Uint8Buff * sharedSecret)40 int32_t GetAccountSymSharedSecret(const CJson *in, const CJson *urlJson, Uint8Buff *sharedSecret)
41 {
42 (void)in;
43 (void)urlJson;
44 (void)sharedSecret;
45 return HC_ERR_NOT_SUPPORT;
46 }
47
GetAccountAsymCredInfo(int32_t osAccountId,const CertInfo * certInfo,IdentityInfo ** returnInfo)48 int32_t GetAccountAsymCredInfo(int32_t osAccountId, const CertInfo *certInfo, IdentityInfo **returnInfo)
49 {
50 (void)osAccountId;
51 (void)certInfo;
52 (void)returnInfo;
53 return HC_ERR_NOT_SUPPORT;
54 }
55
GetAccountSymCredInfoByPeerUrl(const CJson * in,const CJson * urlJson,IdentityInfo * info)56 int32_t GetAccountSymCredInfoByPeerUrl(const CJson *in, const CJson *urlJson, IdentityInfo *info)
57 {
58 (void)in;
59 (void)urlJson;
60 (void)info;
61 return HC_ERR_NOT_SUPPORT;
62 }