API参考
载入中...
搜索中...
未找到
hitls_cookie.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
20
26
27#ifndef HITLS_COOKIE_H
28#define HITLS_COOKIE_H
29
30#include <stdint.h>
31#include "hitls_type.h"
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
37#define HITLS_COOKIE_GENERATE_SUCCESS 1 /* Cookie Generated successfully */
38#define HITLS_COOKIE_GENERATE_ERROR 0 /* Cookie Generation failed */
39#define HITLS_COOKIE_VERIFY_SUCCESS 1 /* Cookie verification succeeded */
40#define HITLS_COOKIE_VERIFY_ERROR 0 /* Cookie verification failed */
41
51typedef int32_t (*HITLS_AppGenCookieCb)(HITLS_Ctx *ctx, uint8_t *cookie, uint32_t *cookieLen);
52
62typedef int32_t (*HITLS_AppVerifyCookieCb)(HITLS_Ctx *ctx, const uint8_t *cookie, uint32_t cookieLen);
63
73
83
84#ifdef __cplusplus
85}
86#endif
87
88#endif // HITLS_COOKIE_H
struct TlsCtx HITLS_Ctx
HITLS context
定义 hitls_type.h:35
struct TlsConfig HITLS_Config
config context
定义 hitls_type.h:41