openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_SetPrivateKey()

int32_t HITLS_CFG_SetPrivateKey ( HITLS_Config config,
HITLS_CERT_Key privateKey,
bool  isClone 
)

Add the private key of the device certificate. Only one private key can be added for each type of certificate.

参数
config[OUT] TLS link configuration
privateKey[IN] Certificate private key
isClone[IN] Indicates whether deep copy is required. The options are as follows: true: yes; false: no.
返回值
HITLS_SUCCESS,ifsuccessful.
Forother error codes, see hitls_error.h.