openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_SecurityCb

typedef int32_t(* HITLS_SecurityCb) (const HITLS_Ctx *ctx, const HITLS_Config *config, int32_t option, int32_t bits, int32_t id, void *other, void *exData)

Secure Callback Function Prototype

参数
ctx[IN] context
config[IN] context
option[IN] indicates the options to be checked, such as the version, certificate, temporary key, signature algorithm, support group, and session ticket...
bits[IN] Number of security bits, which is used to check the level of security of the key.
id[IN] Indicates the ID to be checked, such as the version ID, signature algorithm ID, and support group ID. Input based on the options that need to be checked.
other[IN] Parameters to be checked, such as cipher suites, certificates, and signature algorithms.
exData[IN] Input the data as required.
返回值
HITLS_SUCCESS,ifsuccessful. For details about other error codes,see hitls_error.h