API参考
载入中...
搜索中...
未找到
hitls_cookie.h 文件参考

DTLS cookie callback and helper definitions. 更多...

#include <stdint.h>
#include "hitls_type.h"
hitls_cookie.h 的引用(Include)关系图:
此图展示该文件被哪些文件直接或间接地引用了:

浏览该文件的源代码.

宏定义

#define HITLS_COOKIE_GENERATE_SUCCESS   1 /* Cookie Generated successfully */
#define HITLS_COOKIE_GENERATE_ERROR   0 /* Cookie Generation failed */
#define HITLS_COOKIE_VERIFY_SUCCESS   1 /* Cookie verification succeeded */
#define HITLS_COOKIE_VERIFY_ERROR   0 /* Cookie verification failed */

类型定义

typedef int32_t(* HITLS_AppGenCookieCb) (HITLS_Ctx *ctx, uint8_t *cookie, uint32_t *cookieLen)
 Cookie callback prototype generated by the server.
typedef int32_t(* HITLS_AppVerifyCookieCb) (HITLS_Ctx *ctx, const uint8_t *cookie, uint32_t cookieLen)
 The server verifies the cookie callback prototype.

函数

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.

详细描述

DTLS cookie callback and helper definitions.