API参考
载入中...
搜索中...
未找到
change_cipher_spec.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 CHANGE_CIPHER_SPEC_H
17#define CHANGE_CIPHER_SPEC_H
18
19#include <stdint.h>
20#include "hitls_build.h"
21#include "tls.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
37int32_t CCS_Init(TLS_Ctx *ctx);
38
46void CCS_DeInit(TLS_Ctx *ctx);
47
56bool CCS_IsRecv(const TLS_Ctx *ctx);
57
68int32_t CCS_Send(TLS_Ctx *ctx);
69
81int32_t CCS_Ctrl(TLS_Ctx *ctx, CCS_Cmd cmd);
82
92int32_t ProcessDecryptedCCS(TLS_Ctx *ctx, const uint8_t *data, uint32_t dataLen);
93
103int32_t ProcessPlainCCS(TLS_Ctx *ctx, const uint8_t *data, uint32_t dataLen);
104#ifdef __cplusplus
105}
106#endif
107
108#endif