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 #ifndef G_ENHANCE_AUTH_FUNC_PACK_H 16 #define G_ENHANCE_AUTH_FUNC_PACK_H 17 18 #include <stdint.h> 19 #include <stdbool.h> 20 21 #include "auth_interface_struct.h" 22 #include "auth_common_struct.h" 23 #include "auth_attest_interface_struct.h" 24 #include "auth_session_key_struct.h" 25 #include "auth_session_fsm_struct.h" 26 #include "lnn_node_info_struct.h" 27 #ifdef __cplusplus 28 extern "C" { 29 #endif 30 31 int32_t AuthMetaGetConnInfoBySidePacked(const char *uuid, bool isClient, AuthConnInfo *connInfo); 32 int32_t AuthMetaInitPacked(const AuthTransCallback *callback); 33 void AuthUpdateNormalizeKeyIndexPacked(const char *udidHash, int64_t index, 34 AuthLinkType type, SessionKey *normalizedKey, bool isServer); 35 int32_t GenerateCertificatePacked(SoftbusCertChain *softbusCertChain, const AuthSessionInfo *info); 36 bool IsNeedUDIDAbatementPacked(const AuthSessionInfo *info); 37 int32_t VerifyCertificatePacked(SoftbusCertChain *softbusCertChain, const NodeInfo *nodeInfo, 38 const AuthSessionInfo *info); 39 void AuthMetaNotifyDataReceivedPacked(uint32_t connectionId, const SocketPktHead *pktHead, const uint8_t *data); 40 void AuthClearDeviceKeyPacked(void); 41 void DelAuthMetaManagerByConnectionIdPacked(uint32_t connectionId); 42 43 #ifdef __cplusplus 44 } 45 #endif 46 47 #endif