openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_New()

HITLS_Ctx * HITLS_New ( HITLS_Config config)

Create a TLS object and deep copy the HITLS_Config to the HITLS_Ctx.

This is the main TLS structure, which starts to establish a secure link through the client or server on the basis that the link has been established at the network layer.

注意
The HITLS_Config can be released after the creation is successful.
参数
config[IN] Config context
返回值
HITLS_Ctxpointer. If the operation fails, a null value is returned.