openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_VerifyCb

typedef int(* HITLS_VerifyCb) (int32_t isPreverifyOk, HITLS_CERT_StoreCtx *storeCtx)

Certificate verification callback.

Attention
This callback function must be compatible with OpenSSL and has the same logic as OpenSSL.
Parameters
isPreverifyOk[IN] Indicates whether the relevant certificate has passed the verification (isPreverifyOk=1) or failed (isPreverifyOk=0)
storeCtx[IN] Cert store context
Return values
1indicates success. Other values indicate failure.