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 * id,const char * idField,const CertInfo * peerCertInfo,Uint8Buff * sharedSecret)30 int32_t GetAccountAsymSharedSecret(int32_t osAccountId, const char *id, const char *idField,
31 const CertInfo *peerCertInfo, Uint8Buff *sharedSecret)
32 {
33 (void)osAccountId;
34 (void)id;
35 (void)idField;
36 (void)peerCertInfo;
37 (void)sharedSecret;
38 return HC_ERR_NOT_SUPPORT;
39 }
40
GetAccountSymSharedSecret(const CJson * in,const CJson * urlJson,Uint8Buff * sharedSecret)41 int32_t GetAccountSymSharedSecret(const CJson *in, const CJson *urlJson, Uint8Buff *sharedSecret)
42 {
43 (void)in;
44 (void)urlJson;
45 (void)sharedSecret;
46 return HC_ERR_NOT_SUPPORT;
47 }
48
GetAccountAsymCredInfo(int32_t osAccountId,const CertInfo * certInfo,IdentityInfo ** returnInfo)49 int32_t GetAccountAsymCredInfo(int32_t osAccountId, const CertInfo *certInfo, IdentityInfo **returnInfo)
50 {
51 (void)osAccountId;
52 (void)certInfo;
53 (void)returnInfo;
54 return HC_ERR_NOT_SUPPORT;
55 }
56
GetAccountSymCredInfoByPeerUrl(const CJson * in,const CJson * urlJson,IdentityInfo * info)57 int32_t GetAccountSymCredInfoByPeerUrl(const CJson *in, const CJson *urlJson, IdentityInfo *info)
58 {
59 (void)in;
60 (void)urlJson;
61 (void)info;
62 return HC_ERR_NOT_SUPPORT;
63 }