API参考
载入中...
搜索中...
未找到
pack_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 PACK_MSG_H
17#define PACK_MSG_H
18
19#include <stdint.h>
20#include "tls.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
35int32_t PackClientHello(const TLS_Ctx *ctx, PackPacket *pkt);
36
46int32_t PackHelloVerifyRequest(const TLS_Ctx *ctx, PackPacket *pkt);
47
57int32_t PackServerHello(const TLS_Ctx *ctx, PackPacket *pkt);
58
68int32_t PackEncryptedExtensions(const TLS_Ctx *ctx, PackPacket *pkt);
78int32_t Tls13PackCertificate(TLS_Ctx *ctx, PackPacket *pkt);
88int32_t PackCertificate(TLS_Ctx *ctx, PackPacket *pkt);
89
99int32_t PackCertificateRequest(const TLS_Ctx *ctx, PackPacket *pkt);
100
110int32_t Tls13PackCertificateRequest(const TLS_Ctx *ctx, PackPacket *pkt);
120int32_t PackCertificateVerify(const TLS_Ctx *ctx, PackPacket *pkt);
121
131int32_t PackNewSessionTicket(const TLS_Ctx *ctx, PackPacket *pkt);
132
142int32_t Tls13PackNewSessionTicket(const TLS_Ctx *ctx, PackPacket *pkt);
143
153int32_t PackServerKeyExchange(TLS_Ctx *ctx, PackPacket *pkt);
154
164int32_t PackClientKeyExchange(TLS_Ctx *ctx, PackPacket *pkt);
165
175int32_t PackFinished(const TLS_Ctx *ctx, PackPacket *pkt);
176
186int32_t PackKeyUpdate(const TLS_Ctx *ctx, PackPacket *pkt);
187#ifdef __cplusplus
188}
189#endif /* end __cplusplus */
190
191#endif /* end PACK_MSG_H */
定义 tls.h:325