openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_LoadKeyFile()

int32_t HITLS_LoadKeyFile ( HITLS_Ctx ctx,
const char *  file,
HITLS_ParseFormat  format 
)

Use the file to set the device private key.

参数
ctx[IN/OUT] TLS connection handle
file[IN] File name.
type[IN] Parsing type.
返回值
HITLS_SUCCESS,ifsuccessful. For details about other error codes, see hitls_error.h.