API参考
载入中...
搜索中...
未找到
parse_msg.h
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#ifndef PARSE_MSG_H
17#define PARSE_MSG_H
18
19#include <stdint.h>
20#include "tls.h"
21#include "hs_msg.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
41int32_t ParseClientHello(TLS_Ctx *ctx, const uint8_t *data, uint32_t len, HS_Msg *hsMsg);
42
57int32_t ParseServerHello(TLS_Ctx *ctx, const uint8_t *buf, uint32_t bufLen, HS_Msg *hsMsg);
58
72int32_t ParseEncryptedExtensions(TLS_Ctx *ctx, const uint8_t *buf, uint32_t bufLen, HS_Msg *hsMsg);
73
86int32_t ParseHelloVerifyRequest(TLS_Ctx *ctx, const uint8_t *data, uint32_t len, HS_Msg *hsMsg);
87
100int32_t ParseCertificate(TLS_Ctx *ctx, const uint8_t *buf, uint32_t bufLen, HS_Msg *hsMsg);
113int32_t Tls13ParseCertificate(TLS_Ctx *ctx, const uint8_t *buf, uint32_t bufLen, HS_Msg *hsMsg);
129int32_t ParseServerKeyExchange(TLS_Ctx *ctx, const uint8_t *data, uint32_t len, HS_Msg *hsMsg);
130
143int32_t ParseCertificateRequest(TLS_Ctx *ctx, const uint8_t *buf, uint32_t bufLen, HS_Msg *hsMsg);
156int32_t Tls13ParseCertificateRequest(TLS_Ctx *ctx, const uint8_t *buf, uint32_t bufLen, HS_Msg *hsMsg);
169int32_t ParseClientKeyExchange(TLS_Ctx *ctx, const uint8_t *data, uint32_t len, HS_Msg *hsMsg);
170
183int32_t ParseCertificateVerify(TLS_Ctx *ctx, const uint8_t *buf, uint32_t bufLen, HS_Msg *hsMsg);
184
198int32_t ParseFinished(TLS_Ctx *ctx, const uint8_t *buf, uint32_t bufLen, HS_Msg *hsMsg);
212int32_t ParseKeyUpdate(TLS_Ctx *ctx, const uint8_t *buf, uint32_t bufLen, HS_Msg *hsMsg);
213
227int32_t ParseNewSessionTicket(TLS_Ctx *ctx, const uint8_t *buf, uint32_t bufLen, HS_Msg *hsMsg);
228
234void CleanClientHello(ClientHelloMsg *msg);
235
241void CleanServerHello(ServerHelloMsg *msg);
242
248void CleanHelloVerifyRequest(HelloVerifyRequestMsg *msg);
254void CleanEncryptedExtensions(EncryptedExtensions *msg);
260void CleanCertificate(CertificateMsg *msg);
261
267void CleanServerKeyExchange(ServerKeyExchangeMsg *msg);
268
274void CleanCertificateRequest(CertificateRequestMsg *msg);
275
281void CleanClientKeyExchange(ClientKeyExchangeMsg *msg);
282
288void CleanCertificateVerify(CertificateVerifyMsg *msg);
289
295void CleanNewSessionTicket(NewSessionTicketMsg *msg);
296
302void CleanFinished(FinishedMsg *msg);
303
304#ifdef __cplusplus
305}
306#endif /* end __cplusplus */
307
308#endif /* end PARSE_MSG_H */
定义 hs_msg.h:234
定义 hs_msg.h:282
定义 hs_msg.h:302
定义 hs_msg.h:166
定义 hs_msg.h:274
定义 hs_msg.h:341
定义 hs_msg.h:336
定义 hs_msg.h:369
定义 hs_msg.h:226
定义 hs_msg.h:324
定义 hs_msg.h:191
定义 hs_msg.h:263