• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This file is part of the openHiTLS project.
3  *
4  * openHiTLS is licensed under the Mulan PSL v2.
5  * You can use this software according to the terms and conditions of the Mulan PSL v2.
6  * You may obtain a copy of Mulan PSL v2 at:
7  *
8  *     http://license.coscl.org.cn/MulanPSL2
9  *
10  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
11  * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
12  * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
13  * See the Mulan PSL v2 for more details.
14  */
15 
16 #include "frame_msg.h"
17 #include "hitls_error.h"
18 #include "frame_tls.h"
19 
FRAME_GenerateMsgFromBuffer(const FRAME_LinkObj * linkObj,const uint8_t * buffer,uint32_t len)20 FRAME_Msg *FRAME_GenerateMsgFromBuffer(const FRAME_LinkObj *linkObj, const uint8_t *buffer, uint32_t len)
21 {
22     // Check whether the const Frame_LinkObj *linkObj parameter is required. If the parameter is not required, delete it
23     (void)linkObj;
24     (void)buffer;
25     (void)len;
26     return NULL;
27 }
28 
29 /**
30 * @ingroup Obtain a message from the I/O receiving buffer of the connection
31 *
32 * @return Return the CTX object of the TLS
33 */
FRAME_GetLinkRecMsg(FRAME_LinkObj * link,uint8_t * buffer,uint32_t len,uint32_t * msgLen)34 int32_t FRAME_GetLinkRecMsg(FRAME_LinkObj *link, uint8_t *buffer, uint32_t len, uint32_t *msgLen)
35 {
36     (void)link;
37     (void)buffer;
38     (void)len;
39     (void)msgLen;
40     return HITLS_SUCCESS;
41 }
42 
43 /**
44 * @ingroup Obtain a message from the I/O sending buffer of the connection
45 *
46 * @return Return the CTX object of the TLS
47 */
FRAME_GetLinkSndMsg(FRAME_LinkObj * link,uint8_t * buffer,uint32_t len,uint32_t * msgLen)48 int32_t FRAME_GetLinkSndMsg(FRAME_LinkObj *link, uint8_t *buffer, uint32_t len, uint32_t *msgLen)
49 {
50     (void)link;
51     (void)buffer;
52     (void)len;
53     (void)msgLen;
54     return HITLS_SUCCESS;
55 }