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.

Attention
The HITLS_Config can be released after the creation is successful.
Parameters
config[IN] Config context
Return values
HITLS_Ctxpointer. If the operation fails, a null value is returned.