31#include "hitls_type.h"
37#define HITLS_COOKIE_GENERATE_SUCCESS 1
38#define HITLS_COOKIE_GENERATE_ERROR 0
39#define HITLS_COOKIE_VERIFY_SUCCESS 1
40#define HITLS_COOKIE_VERIFY_ERROR 0
int32_t HITLS_CFG_SetCookieGenCb(HITLS_Config *config, HITLS_AppGenCookieCb callback)
Sets the callback for generating cookies on the server.
int32_t HITLS_CFG_SetCookieVerifyCb(HITLS_Config *config, HITLS_AppVerifyCookieCb callback)
Set the cookie verification callback on the server.
int32_t(* HITLS_AppVerifyCookieCb)(HITLS_Ctx *ctx, const uint8_t *cookie, uint32_t cookieLen)
The server verifies the cookie callback prototype.
定义 hitls_cookie.h:62
int32_t(* HITLS_AppGenCookieCb)(HITLS_Ctx *ctx, uint8_t *cookie, uint32_t *cookieLen)
Cookie callback prototype generated by the server.
定义 hitls_cookie.h:51
struct TlsCtx HITLS_Ctx
HITLS context
定义 hitls_type.h:35
struct TlsConfig HITLS_Config
config context
定义 hitls_type.h:41