|
openHiTLS API openHiTLS 0.1.0-Alpha1
|

Go to the source code of this file.
Macros | |
| #define | INDICATE_VALUE_SUCCESS 1u |
| #define | INDICATE_EVENT_LOOP 0x01 |
| #define | INDICATE_EVENT_EXIT 0x02 |
| #define | INDICATE_EVENT_READ 0x04 |
| #define | INDICATE_EVENT_WRITE 0x08 |
| #define | INDICATE_EVENT_HANDSHAKE_START 0x10 |
| #define | INDICATE_EVENT_HANDSHAKE_DONE 0x20 |
| #define | INDICATE_EVENT_STATE_CONNECT 0x1000 |
| #define | INDICATE_EVENT_STATE_ACCEPT 0x2000 |
| #define | INDICATE_EVENT_ALERT 0x4000 |
| #define | INDICATE_EVENT_READ_ALERT (INDICATE_EVENT_ALERT | INDICATE_EVENT_READ) |
| #define | INDICATE_EVENT_WRITE_ALERT (INDICATE_EVENT_ALERT | INDICATE_EVENT_WRITE) |
| #define | INDICATE_EVENT_STATE_ACCEPT_LOOP (INDICATE_EVENT_STATE_ACCEPT | INDICATE_EVENT_LOOP) |
| #define | INDICATE_EVENT_STATE_ACCEPT_EXIT (INDICATE_EVENT_STATE_ACCEPT | INDICATE_EVENT_EXIT) |
| #define | INDICATE_EVENT_STATE_CONNECT_LOOP (INDICATE_EVENT_STATE_CONNECT | INDICATE_EVENT_LOOP) |
| #define | INDICATE_EVENT_STATE_CONNECT_EXIT (INDICATE_EVENT_STATE_CONNECT | INDICATE_EVENT_EXIT) |
Typedefs | |
| typedef void(* | HITLS_InfoCb) (const HITLS_Ctx *ctx, int32_t eventType, int32_t value) |
| Information prompt callback prototype. | |
| typedef void(* | HITLS_MsgCb) (int32_t writePoint, int32_t tlsVersion, int32_t contentType, const void *msg, uint32_t msgLen, HITLS_Ctx *ctx, void *arg) |
| Callback prototype of a protocol message. | |
Functions | |
| int32_t | HITLS_SetInfoCb (HITLS_Ctx *ctx, HITLS_InfoCb callback) |
| Set the callback for prompt information. | |
| HITLS_InfoCb | HITLS_GetInfoCb (const HITLS_Ctx *ctx) |
| Callback for obtaining information. | |
| int32_t | HITLS_CFG_SetInfoCb (HITLS_Config *config, HITLS_InfoCb callback) |
| Set the callback function for prompting information. | |
| HITLS_InfoCb | HITLS_CFG_GetInfoCb (const HITLS_Config *config) |
| Callback function for obtaining information prompts. | |
| int32_t | HITLS_SetMsgCb (HITLS_Ctx *ctx, HITLS_MsgCb callback) |
| Set the protocol message callback function, cb can be NULL. | |
| int32_t | HITLS_CFG_SetMsgCb (HITLS_Config *config, HITLS_MsgCb callback) |
| Set the protocol message callback function, cb can be NULL. | |
| int32_t | HITLS_CFG_SetMsgCbArg (HITLS_Config *config, void *arg) |
| Set the related parameters arg required by the protocol message callback function. | |